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 )
Number of individuals.
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:
An integer vector defining the number of categories
for each categorical covariate, so that
Measurement times (same for each individual, unless
Standard deviation of the jitter added to the given measurement times.
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.
Info for generating continuous covariates. Must be a
list containing fields