Description Usage Arguments Details Value
View source: R/rateSwitchTimes.R
For object Switches
, returns a vector containing the calendar times
at which the rate matrices switch. Each calendar time is replicated in the array
the numbers of patient time switch occuring for this calendar time.
1 | GetCalendarEndTimes.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(50,50,Inf,Inf)
switches <- InitializeStudySwitches(50)
switches <- SetSubjectSwitchTimes.Switches(switches,0,20)
switches <- SetSubjectSwitchTimes.Switches(switches,50,c(40))
GetCalendarEndTime.Switches(switches)
The vector of calendar times
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.