Fits Stan model.
fit(stan_data, model = "blm", ...)
The complete StanFit object from the fitted Stan model.
A named list providing the data for the Stan 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
.