GetCalendarEndTimes.Switches: Returns the calendar times for rate matrices required for...

Description Usage Arguments Details Value

View source: R/rateSwitchTimes.R

Description

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.

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(50,50,Inf,Inf)

switches <- InitializeStudySwitches(50) switches <- SetSubjectSwitchTimes.Switches(switches,0,20) switches <- SetSubjectSwitchTimes.Switches(switches,50,c(40)) GetCalendarEndTime.Switches(switches)

Value

The vector of calendar times


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