powered by
Refers to section 10.3
hierarchical_bayesian_model( data, type = "far3", chains = 1, warmup = 1500, iter = 5000 )
a list of class hierarchical_bayesian_model with 6 items
type of datatype used for model fitting (aggregated or linelisting)
the dataframe used for fitting the model
type of bayesian model far2, far3 or log_logistic
parameters for the fitted model
seroprevalence
force of infection
the input data frame, must either have `age`, `pos`, `tot` columns (for aggregated data) OR `age`, `status` for (linelisting data)
type of model ("far2", "far3" or "log_logistic")
number of Markov chains
number of warmup runs
number of iterations
# \donttest{ df <- mumps_uk_1986_1987 model <- hierarchical_bayesian_model(df, type="far3") model$info plot(model) # }
Run the code above in your browser using DataLab