Description Usage Arguments Value See Also Examples
View source: R/rateSwitchTimes.R
The Switches
object contains the patient times at which the hazard functions change
and the calendar times at which the set of "patient time" hazard functions change.
1 | InitializeStudySwitches(times = vector("numeric"))
|
times |
a vector of positive calendar times at which "patient time" hazard functions change
If |
An object of type Switches
which specifies a single "patient time" hazard function for
each calendar time period.
Printing the object print(InitializeStudySwitches(times=c(5,10)))
gives further details
SetSubjectSwitchTimes.Switches
1 2 3 4 | switches <- InitializeStudySwitches(c(5,10,20))
print(switches)
switches <- SetSubjectSwitchTimes.Switches(switches,10,c(5,50))
print(switches)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.