Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with running model with prior distributions #56

Open
sophiecedar opened this issue Dec 5, 2024 · 0 comments
Open

Issue with running model with prior distributions #56

sophiecedar opened this issue Dec 5, 2024 · 0 comments

Comments

@sophiecedar
Copy link

Hello,

I am getting the following error when running the model using my own prior distributions:

Error in jags.model(model.file, data = data, inits = init.values, n.chains = n.chains, :
RUNTIME ERROR:
Compilation error on line 13.
Unknown variable sigma_shape
Either supply values for this variable with the data
or define it on the left hand side of a relation.

From what I understand, both sigma_shape and sigma_rate should be able to run as the default values, but the error is suggesting that it doesn’t recognize that variable. I would like to run the model with sigma_shape and sigma_rate set as the default.

The chunk of code I am running when I this issue is:

simmr_out_informative <- simmr_mcmc(simmr_in2,
prior_control =
list(
means = prior$mean,
sd = prior$sd))

The model runs successfully without the priors added. This problem persists for me even when running the example code from the package. The package, R, and JAGS are up to date. Any suggestions on how to resolve this would be greatly appreciated :) Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant