Description Usage Arguments Value Examples
View source: R/rateSwitchTimes.R
For a given study-time period there is a set of subject times at which
the hazard functions changes. This function allows these time to be entered
into a Switches
object. If there is already a set of patient times for
calendarTime
then they will be overwritten
1 2 | SetSubjectSwitchTimes.Switches(object, calendarTime,
times = vector("numeric"))
|
object |
The |
calendarTime |
The calendar time at which these new patient times are used. |
times |
a vector of positive patient times at which the hazard function changes, the default option
|
switches
object with the new patient times added.
1 2 3 4 5 6 | switches <- InitializeStudySwitches(c(5,10,20))
print(switches)
switches <- SetSubjectSwitchTimes.Switches(switches,0,c(5,50))
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.