lavriclpm.Rd
This passes through a model and data to the lavaan::lavaan function with proper constraints.
lavriclpm(riclpmModel, data, blavaan = FALSE, ...)
riclpmModel | The lavaan syntax for the RI-CLPM model |
---|---|
data | The data |
... | Other parameters passed to |
a fitted model
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)) # }