plot_latent_posterior: Plot the posterior distribution of the latent paths for...

Description Usage Arguments Value

View source: R/plot_latent_posterior.R

Description

Plot the posterior distribution of the latent paths for measured states.

Usage

1
2
3
plot_latent_posterior(epimodel, states, times, cm = "med",
  proportion = FALSE, truth = NULL, true_popsize = NULL,
  dat = NULL)

Arguments

epimodel

fitted epimodel object

states

character vector of states for which to plot the posterior

times

sequence of times at which to compute the posterior

cm

"med" if posterior median, 2.5 and 97.5 quantiles are desired, otherwise "mn" if posterior mean, and 95 percent CI are desired

proportion

if true, plot the proportion instead of the counts

truth

true latent trajectory

true_popsize

true population size, defaults to the population size specified in the epimodel object unless otherwise provided.

dat

data matrix in the epimodel object

Value

plot of the posterior distribution of the latent paths


fintzij/BDAepimodel documentation built on Sept. 20, 2020, 1:44 p.m.