Description Usage Arguments Details Value
View source: R/rateSwitchTimes.R
For object Switches
, returns a vector containing the patient times
at which the rate matrices switch. The patient times for different calendar times
are appended together to return a single vector
1 | GetPatientEndTimes.Switches(object)
|
object |
A |
In the example below, the rate matrices switch at time 50 and Inf. Until time 50 there are two separate patient time rate matrices (one before time 20 one after) and After time 50 there are also two separate patient time rate matrices (one before time 40, one after). Therefore the return value will be c(20,Inf,40,Inf)
switches <- InitializeStudySwitches(50)
switches <- SetSubjectSwitchTimes.Switches(switches,0,20)
switches <- SetSubjectSwitchTimes.Switches(switches,50,c(40))
GetCalendarEndTimes.Switches(switches)
The vector of patient times
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.