How to give a folded normal prior?

Hello everyone,

I am wondering if it is possible to specify a folded normal prior in stan script?

Thanks!

Hello :)

You can just do this:

...
parameters{
  ...
  real<lower=0> alpha;
  ...
}
model{
  ...
  alpha ~ normal(0, 1);
  ...
}

Cheers,
Max

2 Likes

Thank you Max!