If I do:
y ~ normal(mu, sigma) T[0,ymax];
Can I do the equivalent with normal_log (I have a mixture model so can't use the above syntax), e.g.:
lp <- normal_log(y,mu,sigma) T[0,ymax];
And if this isn't supported at the moment, is there a hack or reparameterization for just a positively constrained normal distribution?
parameters {
real<lower=0> y;
}
model {
// ...
lp <- normal_log(y,mu,sigma) T[0,];
}
In case you're interested in the model, I'm using a Gaussian mixture model for bivariate density estimation. Theoretically my data covers a really large range (time from 0 to 365 days, space from 0 to 20 km) but I'm only interested in a short-range model so I truncate my observations to 7 days and 2 km.
Thanks,
Seth