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
mdata = list(
mx = test$mx,
time = test$time,
county = test$county
)
f = alist(
mx ~ normal(mu, sigma),
mu <- a_cty[county] + b_time_cty[county] * time,
c(a_cty, b_time_cty)[county] ~ multi_normal(c(a, b_time), Rho, sigma_cty),
a ~ normal(0, 1),
b_time ~ normal(0, 0.5),
c(sigma, sigma_cty) ~ exponential(1),
Rho ~ lkj_corr(2),
save> pred <- a_cty[county] + b_time_cty[county] * time
)
model = ulam(
f, data = mdata, chains = 1, cores = 1,
iter = 2000,
cmdstan = TRUE,
threads = 1)
When threads are higher than 1, I got:
Syntax error in '/tmp/RtmpMs4d1l/model-3d5e2f5e7d782b.stan', line 11, column 12 to column 23, parsing error:
-------------------------------------------------
9: vector sigma_cty,
10: real sigma,
11: corr_matrix[] Rho,
^
12: int[] time,
13: int[] county ) {
-------------------------------------------------
An argument declaration (unsized type followed by identifier) is expected.
make: *** [make/program:47: /tmp/RtmpMs4d1l/model-3d5e2f5e7d782b.hpp] Error 1
Error: An error occured during compilation! See the message above for more information.
Otherwise, the model runs without problems.
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to run this model:
When threads are higher than 1, I got:
Otherwise, the model runs without problems.
The text was updated successfully, but these errors were encountered: