predsu_simu: Simulate Survical Data

Description Usage Arguments Value

View source: R/predSurv_tools.R

Description

Simulate a survival dataset

Usage

1
2
3
4
5
6
7
predsu_simu(
  n = 300,
  t_ana = 1,
  t_enrollment = 0.25,
  lambda_surv = 1,
  lambda_censor = 0.5
)

Arguments

n

Sample size

t_ana

Time from study starts to the (interim) anlysis

t_enrollment

Time from study starts to the enrollment finishes

Value

A dataframe with enrollment time, time of survival, time of censoring, time of event (survival or censoring), and the indicator of censoring


olssol/predSurv documentation built on Dec. 22, 2021, 4:22 a.m.