stim {stim}R Documentation

Estimate a Stability Informed Model

Description

Estimate a Stability Informed Model

Usage

stim(data = NULL, S = NULL, n = NULL, model, stability)

Arguments

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.

Value

An object of class stim

Examples


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)

[Package stim version 1.0.0 Index]