Skip to content

Commit

Permalink
add normalizing constant for truncation of shrinkage prior
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmerkle committed Sep 18, 2024
1 parent 83d2a1c commit 283e804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/stan/stanmarg.stan
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ functions { // you can use these in R following `rstan::expose_stan_functions("f
}
}
out += normal_lpdf(parvec[1:(npars - 1)] | 0, sd0[i]);
out += student_t_lpdf(sd0[i] | blkparm1[i], 0, blkparm2[i]);
out += student_t_lpdf(sd0[i] | blkparm1[i], 0, blkparm2[i]) - log(.5); // left-truncated at 0
}
}
return out;
Expand Down

0 comments on commit 283e804

Please sign in to comment.