Learn R Programming

imt (version 1.0.0)

fit: Fits Stan model.

Description

Fits Stan model.

Usage

fit(stan_data, model = "blm", ...)

Value

The complete StanFit object from the fitted Stan model.

Arguments

stan_data

A named list providing the data for the Stan model.

model

A character string specifying the model type. Must be either "blm" (Bayesian linear model) or "bnb" (Bayesian negative binomial model). Defaults to "blm".

...

Additional options to be passed through to rstan::sampling.