- dat
A wide-format data frame, with each row corresponding to a unique ID. It contains the observed variables with
repeated measurements and occasions, and time-invariant covariates (TICs) if any.
- t_var
A string specifying the prefix of the column names corresponding to the time variable at each study wave.
- y_var
A string specifying the prefix of the column names corresponding to the outcome variable at each study wave.
- curveFun
A string specifying the functional form of the growth curve. Supported options for latent change score
models include: "quadratic"
(or "QUAD"
), "negative exponential"
(or "EXP"
), "Jenss-Bayley"
(or "JB"
), and "nonparametric"
(or "NonP"
).
- intrinsic
A logical flag indicating whether to build an intrinsically nonlinear longitudinal model. Default is
TRUE
.
- records
A numeric vector specifying indices of the study waves.
- growth_TIC
A string or character vector specifying the column name(s) of time-invariant covariate(s) contributing to the
variability of growth factors if any. Default is NULL
, indicating no growth TICs are included in the model.
- starts
A list containing initial values for the parameters. Default is NULL
, indicating no user-specified
initial values.
- res_scale
A numeric value representing the scaling factor for the initial calculation of the residual variance. This
value should be between 0
and 1
, exclusive. By default, this is NULL
, as it is unnecessary when the
user specifies the initial values using the starts
argument.
- tries
An integer specifying the number of additional optimization attempts. Default is NULL
.
- OKStatus
An integer (vector) specifying acceptable status codes for convergence. Default is 0
.
- jitterD
A string specifying the distribution for jitter. Supported values are: "runif"
(uniform
distribution), "rnorm"
(normal distribution), and "rcauchy"
(Cauchy distribution). Default is "runif"
.
- loc
A numeric value representing the location parameter of the jitter distribution. Default is 1
.
- scale
A numeric value representing the scale parameter of the jitter distribution. Default is 0.25
.
- paramOut
A logical flag indicating whether to output the parameter estimates and standard errors. Default is FALSE
.
- names
A character vector specifying parameter names. Default is NULL
.