I accidentally withdrew from the previous post.
Here’s the link to the original post: Rejecting Initial Value (Student_t distribution)
I’ve edited the model section of the Stan code like this:
model {
// Specify the model for the standardized data
for(i in 1:(N-1)) {
// for(j in 1:(T-1)) {
// z_y[i,j] ~ student_t(nu, z_beta_0[i] + z_c[i,j] * z_beta_1[i] + z_a[i,j] * z_beta_2[i] + z_b[i,j] * z_beta_3[i], z_sigma);
z_y[i,] ~ student_t(nu, z_beta_0[i] + z_c[i,] * z_beta_1[i] + z_a[i,] * z_beta_2[i] + z_b[i,] * z_beta_3[i], z_sigma);
// }
if(i == 1) {
print(z_beta_0);
print(z_beta_1);
print(z_beta_2);
print(z_beta_3);
}
}
// Priors vague on standardized scale:
z_beta_0 ~ normal(0, 4);
z_beta_1 ~ student_t(1, 0, sigma_beta);
z_beta_2 ~ student_t(1, 0, sigma_beta);
z_beta_3 ~ student_t(1, 0, sigma_beta);
z_sigma ~ uniform(1.0E-5, 1.0E+1);
nu ~ exponential(1/30.0);
sigma_beta ~ gamma(2.618,1.618); // mode 1.0, sd 1.0
}
No value is printing and I’m getting the same error as before :/