Fit a hosp trend with BRMS
Usage
fit_hosp_trend(
data,
exp_rate_hosp_prior_mean,
exp_rate_hosp_prior_sd,
log_nb_conc_prior_mean,
log_nb_conc_prior_sd,
seed,
control,
...
)
Arguments
- data
Data to fit. Must have columns
"hosp"
and"time"
.- exp_rate_hosp_prior_mean
Mean for the Normal prior on the exponential growth rate of admissions.
- exp_rate_hosp_prior_sd
Standard deviation for the Normal prior on the exponential growth rate of admissions.
- log_nb_conc_prior_mean
Mean for the Normal prior on the log of the negative binomial concentration parameter ("phi").
- log_nb_conc_prior_sd
Standard deviation for the Normal prior on the log of the negative binomial concentration parameter ("phi").
- seed
Seed for cmdnstan's pseudorandom number generator.
- control
list of control parameters passed to stan via
brms::brm()
. DefaultNULL
.- ...
Additional keyword arguments passed to
brms::brm()