Learn R Programming

rbmi (version 1.5.1)

get_stan_model: Get Compiled Stan Object

Description

Gets a compiled Stan object that can be used with rstan::sampling(), based on the choice of the covariance structure and the prior on the parameters.

Usage

get_stan_model(covariance, prior_cov)

Value

The compiled Stan model object.

Arguments

covariance

A string indicating the covariance structure to be used.

prior_cov

A string indicating the prior on the covariance parameters.