Description Usage Arguments Value Examples
Simulate example data for risk standardization
1 | simulateData(n = 10000, m = 50, l = 5, betaL = FALSE)
|
n |
total number of patients; default |
m |
initial number of centers (min. 10); default value 50 |
l |
number of patient-specific covariates in outcome model; default |
betaL |
if FALSE (default) L is distributed according to a N(0,1) distribution; if TRUE L is distributed according to a Beta(1,6) distribution |
list with three components: L (model matrix), center (vector) and Y (vector; binary outcome variable)
1 2 3 | set.seed(130513)
simulatedData <- simulateData()
str(simulatedData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.