View source: R/plot_seromodel.R
plot_seromodel | R Documentation |
Visualise results of the provided model
plot_seromodel(
seromodel,
serosurvey,
alpha = 0.05,
bin_serosurvey = FALSE,
bin_step = 5,
foi_df = NULL,
foi_max = NULL,
loo_estimate_digits = 1,
central_estimate_digits = 2,
seroreversion_digits = 2,
rhat_digits = 2,
size_text = 11,
plot_constant = FALSE,
x_axis = NA
)
seromodel |
stan_fit object obtained from sampling a model with fit_seromodel |
serosurvey |
|
alpha |
1 - alpha indicates the credibility level to be used |
bin_serosurvey |
If |
bin_step |
Integer specifying the age groups bin size to be used when
|
foi_df |
Dataframe with columns
|
foi_max |
Max FoI value for plotting |
loo_estimate_digits |
Number of loo estimate digits |
central_estimate_digits |
Number of central estimate digits |
seroreversion_digits |
Number of seroreversion rate digits |
rhat_digits |
Number of rhat estimate digits |
size_text |
Size of text for plotting ( |
plot_constant |
boolean specifying whether to plot single
Force-of-Infection estimate and its corresponding rhat value instead
of showing this information in the summary.
Only relevant when |
x_axis |
either |
seromodel summary plot
data(veev2012)
seromodel <- fit_seromodel(veev2012, iter = 100)
plot_seromodel(seromodel, veev2012)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.