plotProgressionPath: plotProgressionPath

Description Usage Arguments Examples

Description

Plots f-th most frequent progression path in the cohort

Usage

1
plotProgressionPath(cohort, hf, f)

Arguments

cohort

simulated in simulateCohort()

hf

names of the transition functions between states in the cohort.

f

number of the path to be plotted

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
hfNames <- array(rep("Exponential", 9), dim = c(3,3))
hfNames[col(hfNames)<=row(hfNames)]<-"NULL"
colnames(hfNames) <- as.list(paste("state", 1:3))
rownames(hfNames) <- as.list(paste("state", 1:3))

M <- makeM(hfNames)
par <- generateParameterMatrix(M)
par[[1,2]] <- list(rate = 1)
par[[1,3]] <- list(rate = 2)
par[[2,3]] <- list(rate = 0.5 )

cohort <- simulateCohort(
transitionFunctions = M,
parameters = par,
cohortSize = 100,
to=10)

plotProgressionPath(cohort, hfNames, 2)

GUIgems documentation built on May 1, 2019, 8:19 p.m.