sim.create_x {lgpr} | R Documentation |
Create an input data frame X for simulated data
Description
Create an input data frame X for simulated data
Usage
sim.create_x(
N,
covariates,
names,
n_categs,
t_data,
t_jitter,
t_effect_range,
continuous_info
)
Arguments
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
|
Value
a list