make_mplus_structural_model: Preparing Mplus code to estimate RS models

View source: R/resp_styles_to_mplus.R

make_mplus_structural_modelR Documentation

Preparing Mplus code to estimate RS models

Description

Prepares Mplus model description syntax for the structural part of the model given latent traits, observed exogenous predictors and observed dependent variables.

Usage

make_mplus_structural_model(latent, observedExogenous, observedDependent)

Arguments

latent

a character vector of latent variable names

observedExogenous

either:

  • a character vector with names of observed exogenous predictors that should be used to predict latent variables in the model

  • a matrix with latent traits in columns and observed exogenous predictors in rows specifying which of the exogenous predictors should be used to predict which latent traits (matrix should contain only 0 and 1 or TRUE and FALSE)

observedDependent

either:

  • a character vector with names of observed dependent variables that should be predicted using latent variables in the model

  • a matrix with latent traits in columns and observed dependent variables in rows specifying which of the dependent variables should be predicted by which latent traits (matrix should contain only 0 and 1 or TRUE and FALSE)

Value

A character vector


tzoltak/rstyles documentation built on Dec. 4, 2024, 5:16 p.m.