diff --git a/DESCRIPTION b/DESCRIPTION index 3baab8d9..54365f19 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: blavaan Title: Bayesian Latent Variable Analysis -Version: 0.5-6.1313 +Version: 0.5-6.1314 Authors@R: c(person(given = "Edgar", family = "Merkle", role = c("aut", "cre"), email = "merklee@missouri.edu", diff --git a/inst/stan/stanmarg.stan b/inst/stan/stanmarg.stan index 1b6253a3..cb5ad849 100644 --- a/inst/stan/stanmarg.stan +++ b/inst/stan/stanmarg.stan @@ -1421,11 +1421,11 @@ transformed parameters { idxvec += 1; if (obspos > 1) vecpos += sum(nlevs[1:(obspos - 1)]) - (obspos - 1); if (YXo[i,obspos] == 1) { - YXostar[i,obspos] = -10 + (Tau[grpnum[patt], (vecpos + 1), 1] + 10) .* z_aug[idxvec]; - tau_jacobian += log(abs(Tau[grpnum[patt], (vecpos + 1), 1] + 10)); // must add log(U) to tau_jacobian + YXostar[i,obspos] = -30 + (Tau[grpnum[patt], (vecpos + 1), 1] + 30) .* z_aug[idxvec]; + tau_jacobian += log(abs(Tau[grpnum[patt], (vecpos + 1), 1] + 30)); // must add log(U) to tau_jacobian } else if (YXo[i,obspos] == nlevs[obspos]) { - YXostar[i,obspos] = Tau[grpnum[patt], vecpos, 1] + (10 - Tau[grpnum[patt], vecpos, 1]) .* z_aug[idxvec]; - tau_jacobian += log(abs(10 - Tau[grpnum[patt], vecpos, 1])); + YXostar[i,obspos] = Tau[grpnum[patt], vecpos, 1] + (30 - Tau[grpnum[patt], vecpos, 1]) .* z_aug[idxvec]; + tau_jacobian += log(abs(30 - Tau[grpnum[patt], vecpos, 1])); } else { YXostar[i,obspos] = Tau[grpnum[patt], vecpos, 1] + (Tau[grpnum[patt], (vecpos + 1), 1] - Tau[grpnum[patt], vecpos, 1]) .* z_aug[idxvec]; tau_jacobian += Tau_un[grpnum[patt], (vecpos + 1), 1]; // jacobian is log(exp(Tau_un))