| PosteriorProbabilities {gems} | R Documentation |
Class "PosteriorProbabilities"
Description
This S4 class summarizes the posterior probabilities over time for objects
of class "ArtCohort"
Usage
## S4 method for signature 'PosteriorProbabilities,ANY,ANY,ANY'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'PosteriorProbabilities'
plot(x, ci = FALSE, main = paste(x@type,
"after starting in State", x@states[1], "at time 0"),
states = 1:dim(x@probabilities)[2], lwd = c(2, 2), col = c("blue",
"green3"), lty = c(1, 2), xlab = "Time", ylab = "Probability", ...)
## S4 method for signature 'PosteriorProbabilities'
head(x, ...)
## S4 method for signature 'PosteriorProbabilities'
tail(x, ...)
Arguments
x |
the PosteriorProbabilities object |
i, j, drop |
same as for a |
... |
arguments passed on to main method |
ci |
should confidence intervals be displayed |
main, xlab, ylab |
same as any plot |
states |
which states to display |
lwd, col, lty |
vectors of lentht 2, with first component for the point estimate and second component for the confidence interval |
Slots
statesObject of class
"character": names of statestimesObject of class
"numeric": time points at which probabilities are evaluatedprobabilitiesObject of class
"matrix": posterior Probabilities to be in each state at each timelowerObject of class
"matrix": lower prediction bound to be in each state at each timeupperObject of class
"matrix": upper prediction bound to be in each state at each timetypeObject of class
"character": describes type of probability
Objects from the Class
Objects are created by calls to the
function simulateCohort.
Author(s)
Luisa Salazar Vizcaya, Nello Blaser, Thomas Gsponer
See Also
transitionProbabilities,
cumulativeIncidence, ArtCohort
Examples
showClass("PosteriorProbabilities")