View source: R/a_models_ri_clpm.R
ri_clpm | R Documentation |
Function to run random intercept cross-lagged panel models under the lvm framework.
ri_clpm(data, vars, lambda,
type = c("cov","chol","prec","ggm"),
verbose = FALSE, ...)
ri_clpm_stationary(x,
stationary = c("intercepts",
"contemporaneous",
"innovation",
"temporal"))
x |
A |
stationary |
The part of the model to implement stationarity on. |
data |
A data frame encoding the data used in the analysis. Can be missing if covs and nobs are supplied. |
vars |
Required argument. Different from in other psychonetrics models, this must be a *matrix* with each row indicating a variable and each column indicating a measurement. The matrix must be filled with names of the variables in the dataset corresponding to variable i at wave j. NAs can be used to indicate missing waves. The rownames of this matrix will be used as variable names. |
lambda |
A model matrix encoding the factor loading structure. Each row indicates an indicator and each column a latent. A 0 encodes a fixed to zero element, a 1 encoding a free to estimate element, and higher integers encoding equality constrains. For multiple groups, this argument can be a list or array with each element/slice encoding such a matrix. |
type |
The type of model to model innovation |
verbose |
Logical, should progress be printed to the console? |
... |
Arguments sent to |
A single psychonetrics object
Sacha Epskamp
# to be made
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.