simsurvdata {survivalmodels} | R Documentation |
Simulate Survival Data
Description
Function for simulating survival data.
Usage
simsurvdata(n = 100, trt = 2, age = 2, sex = 1.5, cens = 0.3)
Arguments
n |
|
trt , age , sex |
|
cens |
|
Details
Currently limited to three covariates, Weibull survival times, and Type I censoring. This will be expanded to a flexible simulation function in future updates. For now the function is primarily limited to helping function examples.
Value
Examples
simsurvdata()
[Package survivalmodels version 0.1.191 Index]