get.survival.data: Simulate right-censored survival responses in two groups

Description Usage Arguments Value Examples

View source: R/internal.R

Description

Simulate right-censored survival responses in two groups

Usage

1
get.survival.data(n, num.times, p1 = NULL, p2 = NULL)

Arguments

n

the number of observations

num.times

the number of time points at which events or right-censors can occur

p1

the proportion of events in the first group, by default NULL which takes p1 to be random

p2

the proportion of events in the second group, by default NULL which takes p1 to be random

Value

a dataframe with three columns: group, time, and status

Examples

1
dat <- FragilityTools:::get.survival.data(n = 100, num.times = 6)

brb225/FragilityTools documentation built on Jan. 21, 2022, 1:26 a.m.