Learn R Programming

modsem (version 1.0.7)

modsem_mplus: Estimation latent interactions through mplus

Description

Estimation latent interactions through mplus

Usage

modsem_mplus(
  model.syntax,
  data,
  estimator = "ml",
  type = "random",
  algorithm = "integration",
  process = "8",
  ...
)

Value

modsem_mplus object

Arguments

model.syntax

lavaan/modsem syntax

data

dataset

estimator

estimator argument passed to mplus

type

type argument passed to mplus

algorithm

algorithm argument passed to mplus

process

process argument passed to mplus

...

arguments passed to other functions

Examples

Run this code
# Theory Of Planned Behavior
tpb <- '
# Outer Model (Based on Hagger et al., 2007)
  ATT =~ att1 + att2 + att3 + att4 + att5
  SN =~ sn1 + sn2
  PBC =~ pbc1 + pbc2 + pbc3
  INT =~ int1 + int2 + int3
  BEH =~ b1 + b2

# Inner Model (Based on Steinmetz et al., 2011)
  # Covariances
  ATT ~~ SN + PBC
  PBC ~~ SN
  # Causal Relationsships
  INT ~ ATT + SN + PBC
  BEH ~ INT + PBC
  BEH ~ INT:PBC
'

if (FALSE) {
estTpbMplus <- modsem_mplus(tpb, data = TPB)
summary(estTpbLMS)
}

Run the code above in your browser using DataLab