Stan is a programming language created in 2012.
#749on PLDB | 11Years Old | 561Users |
2Books | 0Papers | 774Repos |
Stan is a probabilistic programming language for statistical inference written in C++. The Stan language is used to specify a (Bayesian) statistical model with an imperative program calculating the log probability density function. Stan is licensed under the New BSD License. Read more on Wikipedia...
data {
int<lower=0> N;
vector[N] incumbency_88;
vector[N] vote_86;
vector[N] vote_88;
}
parameters {
vector[3] beta;
real<lower=0> sigma;
}
model {
vote_88 ~ normal(beta[1] + beta[2] * vote_86
+ beta[3] * incumbency_88,sigma);
}
Feature | Supported | Token | Example |
---|---|---|---|
Integers | ✓ | ||
Floats | ✓ | ||
Type Inference | ✓ |
title | authors | year | publisher |
---|---|---|---|
Statistical Rethinking: A Bayesian Course with Examples in R and Stan (Chapman & Hall/CRC Texts in Statistical Science) | McElreath, Richard | 2015 | Chapman and Hall/CRC |
Doing Bayesian Data Analysis: A Tutorial with R, JAGS, and Stan | Kruschke, John | 2014 | Academic Press |