
Generate PFS, OS and objective response using the four-states model
Source:R/CorrelatedPfsAndOs4.R
CorrelatedPfsAndOs4.Rd
Generate PFS, OS and objective response using the four-states model
Usage
CorrelatedPfsAndOs4(
n,
transition_probability,
duration,
death_name = "death",
progression_name = "progression",
response_name = "response"
)
Arguments
- n
integer. Number of observations.
- transition_probability
a 4x4 matrix defining transition probabilities between stable (initial state, 1), response (2), progression (3) and death (absorbing, 4).
- duration
integer. Duration of trial. Set it to a sufficient large integer in practice to cover the duration of the trial (potentially be extended).
- death_name
column name of OS in returned data frame. It must be consistent with `name` in the function `endpoint()`.
- progression_name
column name of PFS in returned data frame. It must be consistent with `name` in the function `endpoint()`.
- response_name
column name of objective response in returned data frame. It must be consistent with `name` in the function `endpoint()`.