Search code examples
rbayesianvariancestan

STAN in R: Standard deviation or variance in normal distribution


I'm using STAN in R to estimate some parameters. For the priors I want to use a normal distribution. In the model description the priors have to be determined:

     a ~ normal(mean,sigma)

Does STAN interpret the sigma as the standard deviation or as the variance?

Thank you in advance!


Solution

  • The standard deviation is the second parameter for the normal distribution in Stan.