stim | R Documentation |
Estimate a Stability Informed Model
stim(data = NULL, S = NULL, n = NULL, model, stability)
data |
A dataframe with the measured variables. Not needed if S is provided |
S |
A covariance matrix for the measured variables. Not needed if data is provided. |
n |
Number of observations. Not needed if data is provided. |
model |
An object with the cross-sectional model description in lavaan syntax |
stability |
An object that contains stability information for each variable in the model. |
An object of class stim
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.