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 "data.frame"

...

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

states

Object of class "character": names of states

times

Object of class "numeric": time points at which probabilities are evaluated

probabilities

Object of class "matrix": posterior Probabilities to be in each state at each time

lower

Object of class "matrix": lower prediction bound to be in each state at each time

upper

Object of class "matrix": upper prediction bound to be in each state at each time

type

Object 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")


[Package gems version 1.1.1 Index]