Description Usage Arguments Value Examples
View source: R/posterior_samples.R
Posterior samples from estimate_secondary
1 2 3 4 | ## S3 method for class 'estimate_secondary'
posterior_samples(x)
posterior_samples(x, ...)
|
x |
A |
Returns a data frame of posterior samples for time-varying parameters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# load packages used
library(EpiNow2)
# set cores
options(mc.cores = ifelse(interactive(), 4 ,1))
# fit using just data in the UK for cases and deaths
fit <- estimate_secondary(reports = example_obs, chains = 2,
obs = obs_opts(scale = list(mean = 0.2, sd = 0.2)))
posterior_samples(fit)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.