View source: R/misc-simulate.R
sim.create_x | R Documentation |
Create an input data frame X for simulated data
sim.create_x(
N,
covariates,
names,
n_categs,
t_data,
t_jitter,
t_effect_range,
continuous_info
)
N |
Number of individuals. |
covariates |
Integer vector that defines the types of covariates (other than id and age). If not given, only the id and age covariates are created. Different integers correspond to the following covariate types:
|
names |
Covariate names. |
n_categs |
An integer vector defining the number of categories
for each categorical covariate, so that |
t_data |
Measurement times (same for each individual, unless
|
t_jitter |
Standard deviation of the jitter added to the given measurement times. |
t_effect_range |
Time interval from which the disease effect times are sampled uniformly. Alternatively, This can any function that returns the (possibly randomly generated) real disease effect time for one individual. |
continuous_info |
Info for generating continuous covariates. Must be a
list containing fields
|
a list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.