GenerateStartStateVector: Generate a list of patient start states

Description Usage Arguments Value

View source: R/eventSim.R

Description

For example: nodeNames <- c("control.progressing","control.progressed","death") startCounts <- c("control.progressing",5,"death",2) GenerateStartStateVector(nodeNames,startCounts)

Usage

1
GenerateStartStateVector(nodeNames, startCounts)

Arguments

nodeNames

A list of nodeNames

startCounts

A list of startCounts of the form c("nodeName",numberStartingatNode,...)

Value

A numeric vector containing the starting states of subjects. The example returns c(1,1,1,1,1,3,3)


scientific-computing-solutions/badminton documentation built on May 29, 2019, 3:43 p.m.