powered by
Estimate a Stability Informed Model
stim(data = NULL, S = NULL, n = NULL, model, stability)
An object of class stim
A dataframe with the measured variables. Not needed if S is provided
A covariance matrix for the measured variables. Not needed if data is provided.
Number of observations. Not needed if data is provided.
An object with the cross-sectional model description in lavaan syntax
An object that contains stability information for each variable in the model.
model <- 'Y~X' stability <- data.frame(X = .3, Y = .3) dat <- data.frame(Y = rnorm(500, 0, 1), X = rnorm(500, 0, 1)) stim(data = dat, model = model, stability = stability)
Run the code above in your browser using DataLab