# Example models

## Common models

Below are a few examples of common statistical models implemented in
greta.

## Common Bayesian priors

The following examples show some common Bayesian priors of which some
induce sparsity.

## Advanced Bayesian models

Below are some more advanced examples implemented in greta.

## BUGS models

The BUGS project provide a number of example models written in the
BUGS modelling language. These models will run in WinBUGS and OpenBUGS,
and likely also in JAGS. The Stan
wiki provides Stan implementations of these models.

The following sections provide greta implementations of some of these
example models, alongside the BUGS code from WinBUGS
examples volume 2 (pdf) and Stan code and an R version of the data
from the Stan
example models wiki.

## Stan models

The following few code examples show how Stan code can be translated
in equivalent greta models.

## Ecological models

Here we provide some examples of common ecological models. We begin
with a basic logistic regression often used in species distribution
modelling to estimate species probability of presence. We then provide
increasingly complex species distribution models, beginning with
modelling observation error directly, and moving on to models for
multiple species: independently but concurrently modelled species,
partially pooled coefficients, repeated measures, and sub-models.