epictmcmc
objectplot.epictmcmc
is an S3 method that plots the output of an S3 object of class epictmcmc
.
# S3 method for epictmcmc
plot(x, epi = NULL, plottype = NULL, start = NULL, end = NULL,
thin = NULL, ...)
an S3 object of class epictmcmc
(i.e. the output of the epictmcmc
function).
epidemic data of class datagen
.
determines which of three options to plot the output of the epictmcmc
function are used: ``parameter'' produces trace plots for each of the model parameters, and ``inf.times'' (``rem.times'') produces plots of the average posterior and 95% CI of the unobserved infection (removal) times when datatype
set to ``known removal'' (``unknown removal'').
options for creating mcmc
object.
additional arguments that are passed to the generic plot
function.
The argument plottype
is used to specify the kind of plot produced. Trace and density plots of the posterior distribution of the model parameters can be obtained by setting plottype
= ``parameter''. Additionally, in the case of unobserved infection (removal) times, a plot of the average posterior and 95% percentile intervals of the inferred infection (removal) times are produced by setting plottype
= ``inf.times'' (``rem.times'').
epictmcmc
, print.epictmcmc
, summary.epictmcmc
, mcmc
, plot.mcmc
.