Simulated data as data.table with n rows and the following columns:
Y (binary outcome), time (non-binary outcome), event (non-binary outcome),
X1-X5 (binary predictors), X6-X10 (continous predictors)
Arguments
n
Sample size
outcome
Character vector. Response variables are generated
according to keywords: "binary" = binary response,
"survival" = survival response, "competing.risks" =
competing risks response
formula
Specify regression coefficients
intercept
For binary outcome the intercept of the logistic regression.
n.intervals
sampleDataTD only: the maximum number of episodes in which the covariates are updated.
Author
Thomas A. Gerds <tag@biostat.ku.dk>
Details
For the actual lava::regression parameters see the function definition.