You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this example at first and, while it runs well, I was a bit confused as to what it is estimating. While the posterior plots seem confusing at first, the posterior draws have little stochasticity, since the data does not have any randomness as well. Would it be better to use a more "illustrative" generated data? E.g.
N <- 1000
x <- rnorm(N)
y <- 1 + 2 * x + rnorm(N)
# nimble model
constants <- list(N = N, x = x)
data <- list(y = y)
# etc.
@larryshamalama Agreed, the example in the roxygen was not ideal. I've just changed the HMC example to something similar to your suggestion, the relevant code:
set.seed(0)
N <- 100
x <- rnorm(N)
y <- 1 + 0.3*x + rnorm(N)
constants <- list(N = N, x = x)
data <- list(y = y)
This change is made on the master branch of the nimbleHMC repository, and also merged into the joss branch for this review.
Thanks for the helpful suggestion. I'm going ahead and closing this issue.
nimbleHMC/nimbleHMC/R/HMC_samplers.R
Lines 30 to 52 in 1e336ea
(same example as in the reference manual)
I tried this example at first and, while it runs well, I was a bit confused as to what it is estimating. While the posterior plots seem confusing at first, the posterior draws have little stochasticity, since the data does not have any randomness as well. Would it be better to use a more "illustrative" generated data? E.g.
CC openjournals/joss-reviews#6745
The text was updated successfully, but these errors were encountered: