View source: R/mcmc_functions.R
| density.pandemicEstimated | R Documentation |
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.
## S3 method for class 'pandemicEstimated' density(x, waves = 1:x$n_waves, ...)
x |
Output of the |
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 |
pandemic_model and stan_dens.
## Not run:
dataMG = load_covid("Brazil","MG")
estimMG = pandemic_model(dataMG)
density(estimMG)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.