Description Usage Arguments Examples
Plots f-th most frequent progression path in the cohort
1 | plotProgressionPath(cohort, hf, f)
|
cohort |
simulated in simulateCohort() |
hf |
names of the transition functions between states in the cohort. |
f |
number of the path to be plotted |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.