InitializeStudySwitches: Creates an object of type 'Switches', which contains the...

Description Usage Arguments Value See Also Examples

View source: R/rateSwitchTimes.R

Description

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.

Usage

1
InitializeStudySwitches(times = vector("numeric"))

Arguments

times

a vector of positive calendar times at which "patient time" hazard functions change If NULL then the same patient time hazard functions will be used throughout the whole study

Value

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

See Also

SetSubjectSwitchTimes.Switches

Examples

1
2
3
4
 switches <- InitializeStudySwitches(c(5,10,20))
 print(switches)
 switches <- SetSubjectSwitchTimes.Switches(switches,10,c(5,50))
 print(switches)

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