partialDependence_growth {semtree} | R Documentation |
Compute partial dependence for latent growth models
Description
Compute the partial dependence of a predictor, or set of predictors, on the predicted trajectory of a latent growth model.
Usage
partialDependence_growth(
x,
data,
reference.var,
support = 20,
points = NULL,
mc = NULL,
FUN = "median",
times = NULL,
parameters = NULL,
...
)
Arguments
x |
An object for which a method exists |
data |
Optional |
reference.var |
Character vector, referring to the (independent) reference variable or variables for which partial dependence is calculated. Providing two (or more) variables allows for probing interactions, but note that this is computationally expensive. |
support |
Integer. Number of grid points for interpolating the
|
points |
Named list, with elements corresponding to |
mc |
Integer. If |
FUN |
Character string with function used to integrate predictions
across all elements of |
times |
Numeric matrix, representing the factor loadings of a latent
growth model, with columns equal to the number of growth |
parameters |
Character vector of the names of the growth parameters;
defaults to |
... |
Extra arguments passed to |
Author(s)
Caspar J. Van Lissa