density.pandemicEstimated: Draw estimated density of the parameters for the pandemic...

View source: R/mcmc_functions.R

density.pandemicEstimatedR Documentation

Draw estimated density of the parameters for the pandemic model

Description

Uses stan's stan_dens function to draw the marginal posterior for the relevant parameters of the estimated model. Defined as a method for the stats::density generic function.

Usage

## S3 method for class 'pandemicEstimated'
density(x, waves = 1:x$n_waves, ...)

Arguments

x

Output of the pandemic_model function

waves

If the estimated model has more than 1 wave, this parameter controls which waves parameters are shown. Default are all waves.

...

Additional parameters passed on the stan_dens function

See Also

pandemic_model and stan_dens.

Examples

## Not run: 
dataMG = load_covid("Brazil","MG")
estimMG = pandemic_model(dataMG)
density(estimMG)
## End(Not run)

PandemicLP documentation built on March 18, 2022, 6:22 p.m.