Stan models
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests/testthat
.gitignore
LICENSE
Makefile
README.Rmd
README.md
bernoulli.stan
bernoulli_dgp.stan
binomial.stan
binomial_dgp.stan
mixed_normal.stan
multinomial.stan
multinomial_dgp.stan
napstan.Rproj
pooled.stan

README.md

ORCiD Licence

Last-changedate

napstan (Stan models tested in R and python)

napstan is a collection of Stan models that have been tested to approximate the 'true' parameters. It is intended as a source known working models from which to base models for research, and also as a learning tool to understand how to build bayesian models in Stan.

There are currently two sets of Stan programs. Models that estimate parameters are named after their distribution, like binomial.stan. Models that generate sample data from a distribution are named with _dgp.stan after the distribution name, for example binomial_dgp.stan.

Installing

This is not a true R package, so there is no installation, but you can clone this repository to have a copy of these files. You can test the models by running

make test

in the repository directory, and look at the tests in tests/testthat to get a sense of how each model is verified against synthetic data.