Description Usage Arguments Value Examples
This passes through a model and data to the lavaan::lavaan function with proper constraints.
1 |
riclpmModel |
The lavaan syntax for the RI-CLPM model |
data |
The data |
... |
Other parameters passed to |
a fitted model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | adf <- as.data.frame(MASS::mvrnorm(n=100, mu = rep(0, 30), Sigma = diag(30)))
xvars <- paste0('x', 1:10)
yvars <- paste0('y', 1:10)
mvars <- paste0('m', 1:10)
names(adf) <- c(xvars,yvars,mvars)
var_groups <- list(x = xvars, y = yvars, m = mvars)
model_text <- riclpm_text(var_groups = var_groups, constrain_over_waves = TRUE, constrain_ints = 'free')
## Not run:
summary(lavriclpm(model_text, data = adf))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.