Revision 6d78261792bad1b7ae2cd8b88a428e3ff198af9e authored by Mitzi Morris on 10 January 2020, 19:05:35 UTC, committed by Mitzi Morris on 10 January 2020, 19:05:35 UTC
1 parent 69cddce
normal_mixture.stan
transformed data {
real<lower=0,upper=1> theta;
real mu[2];
real<lower=0> sigma[2];
mu[1] <- 0.0; sigma[1] <- 0.5;
mu[2] <- 4.0; sigma[2] <- 3.0;
theta <- 0.25;
}
parameters {
real y;
}
model {
increment_log_prob(log_sum_exp(log(theta)
+ normal_log(y,mu[1],sigma[1]),
log(1.0 - theta)
+ normal_log(y,mu[2],sigma[2])));
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...