epinowcast
Loading...
Searching...
No Matches
zero_truncated_normal.stan
Go to the documentation of this file.
1
29real zero_truncated_normal_lpdf(vector y, real mu, real sigma) {
30 real tar;
31 real g = num_elements(y);
32 tar = normal_lpdf(y | mu, sigma) - g * normal_lccdf(0 | mu, sigma);
33 return(tar);
34}
real zero_truncated_normal_lpdf(vector y, real mu, real sigma)