simLong {BoostMLR} | R Documentation |
Simulate longitudinal data
Description
Simulates longitudinal data from multivariate and univariate longitudinal response model.
Usage
simLong(n = 100,
ntest = 0,
N = 5,
rho = 0.8,
model = c(1, 2),
phi = 1,
q_x = 0,
q_y = 0,
type = c("corCompSym", "corAR1", "corSymm", "iid"))
Arguments
n |
Requested training sample size. |
ntest |
Requested test sample size. |
N |
Parameter controlling number of time points per subject. |
rho |
Correlation parameter. |
model |
Requested simulation model. |
phi |
Variance of measurement error. |
q_x |
Number of noise covariates. |
q_y |
Number of noise responses. |
type |
Type of correlation matrix. |
Details
Simulates longitudinal data from multivariate and univariate longitudinal response model. We consider following 2 models:
-
model=1
: Simpler linear model consist of three longitudinal responses,y1
,y2
, andy3
and four covariatesx1
,x2
,x3
, andx4
. Responsey1
is associated withx1
andx4
. Responsey2
is associated withx2
andx4
. Responsey3
is associated withx3
andx4
. -
model=2
: Relatively complex model consist of single longitudinal response and four covariates. Model includes non-linear relationship between response and covariates and covariate-time interaction.
Value
An invisible list with the following components:
dtaL |
List containing the simulated data in the following order:
|
dta |
Simulated data given as a data frame. |
trn |
Index of |
Author(s)
Amol Pande and Hemant Ishwaran
References
Pande A., Li L., Rajeswaran J., Ehrlinger J., Kogalur U.B., Blackstone E.H., Ishwaran H. (2017). Boosted multivariate trees for longitudinal data, Machine Learning, 106(2): 277–305.