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
Is there a way of specifying priors parameters from code/file? For example, in the code below, rather than writing dnorm(0,100) we may want to specify the prior mean and variance as a result of a calculation. Is there a way of feeding such computed prior parameters to the model?
m <- map2stan(
alist(
k ~ dnorm( k_mu , k_sd )
),
data=list(k_mu=c(0,0),k_sd=c(1,1)) )
It's a little awkward, since map2stan expects data to have more than one case, I had to insert two values into k_mu and k_sd in the data list. Stan did not seem to care.
In any event, the above is not tested or supported behavior. So be careful.
Is there a way of specifying priors parameters from code/file? For example, in the code below, rather than writing dnorm(0,100) we may want to specify the prior mean and variance as a result of a calculation. Is there a way of feeding such computed prior parameters to the model?
The text was updated successfully, but these errors were encountered: