From 5450894d10cc5574876f907f821a2398c95577a8 Mon Sep 17 00:00:00 2001 From: ecmerkle Date: Fri, 8 Nov 2024 16:20:27 -0600 Subject: [PATCH] increase "practical infinity" on the probit scale --- DESCRIPTION | 2 +- inst/stan/stanmarg.stan | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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))