fit: Fits Stan model.

View source: R/fit.R

fitR Documentation

Fits Stan model.

Description

Fits Stan model.

Usage

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

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.

Value

The complete StanFit object from the fitted Stan model.


imt documentation built on Sept. 11, 2024, 5:41 p.m.