GetPatientEndTimes.Switches: Returns patient times for tate matrices requred for Gillespe...

Description Usage Arguments Details Value

View source: R/rateSwitchTimes.R

Description

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

Usage

1

Arguments

object

A Switches object

Details

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)

Value

The vector of patient times


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