Hello,
I'm wondering if someone can help me out with an issue I'm having.
I'm using ulam() for a bayesian model and it runs fine when I don't have log_lik=TRUE in it but once I add that in I get an error.
Here is my model:
diverse_f1 <-ulam(alist(
+ grossProd ~ dnorm(mu, sigma),
+ mu <- a + b*(zScore),
+ zScore~dnorm(mu_x1, sigma_x1),
+ a ~ dnorm(2, 30),
+ b ~ dnorm(0, 100),
+ mu_x1~dnorm(0,100),
+ sigma_x1~dcauchy(0,2),
+ sigma ~ dcauchy(0,2)
+ ),data=d_full_f1,log_lik=TRUE,chains=4 , cores=4 ,start=list( B_impute = rep(0.5,26)))
Here is the error (ran on one chain for debug purposes, see error below....):
no parameter log_lik; sampling not done
no parameter log_lik; sampling not done
no parameter log_lik; sampling not done
no parameter log_lik; sampling not done
here are whatever error messages were returned
[[1]]
Stan model 'anon_model' does not contain samples.
[[2]]
Stan model 'anon_model' does not contain samples.
[[3]]
Stan model 'anon_model' does not contain samples.
[[4]]
Stan model 'anon_model' does not contain samples.
Stan model 'anon_model' does not contain samples.
Error in validObject(.Object) :
invalid class “ulam” object: invalid object for slot "coef" in class "ulam": got class "NULL", should be or extend class "numeric"
In addition: Warning message:
In .local(object, ...) :
some chains had errors; consider specifying chains = 1 to debug
Error on one chain:
no parameter log_lik; sampling not done
Stan model 'anon_model' does not contain samples.
Error in validObject(.Object) :
invalid class “ulam” object: invalid object for slot "coef" in class "ulam": got class "NULL", should be or extend class "numeric"
Any insight would be greatly appreciated!
Best,
Hannah
--
Hannah Waterhouse, PhD
Pronouns: She/Her
Soils and Biogeochemistry Graduate Group
University of California, Davis