Closed audrey-b closed 5 years ago
This used to work but now it gives me an error: sims_simulate("a ~ dt(theta[1],theta[2],df)", nsims = 1, parameters = nlist(df=1, theta=c(1,1))) Error: jags code must include at least one observed stochastic variable node.
However these work: sims_simulate("a ~ dt(theta1, theta2 ,df)", nsims = 1, parameters = nlist(df=1, theta1=1, theta2=1)) $a [1] 1.555005
an nlists object of an nlist object with 1 natomic element
sims_simulate("a ~ dt(theta[1],theta[2],df)", nsims = 1, parameters = nlist(df=1, theta=c(1,1)), latent=NA) $a [1] 3.765035
fixed
sims_simulate("a ~ dt(theta[1],theta[2],df)", nsims = 1, parameters = list(df=1, theta=c(1,1)))
$a [1] 2.016239 an nlists object of an nlist object with 1 natomic element
This used to work but now it gives me an error: sims_simulate("a ~ dt(theta[1],theta[2],df)", nsims = 1, parameters = nlist(df=1, theta=c(1,1))) Error: jags code must include at least one observed stochastic variable node.
However these work: sims_simulate("a ~ dt(theta1, theta2 ,df)", nsims = 1, parameters = nlist(df=1, theta1=1, theta2=1)) $a [1] 1.555005
an nlists object of an nlist object with 1 natomic element
sims_simulate("a ~ dt(theta[1],theta[2],df)", nsims = 1, parameters = nlist(df=1, theta=c(1,1)), latent=NA) $a [1] 3.765035
an nlists object of an nlist object with 1 natomic element