esemInvaTarget: ESEM Invariance Script Writer

Description Usage Arguments Examples

Description

Simple text manipulation function for writing a series of ESEM invariance scripts for Mplus

Usage

1
2
esemInvaTarget(Fs, Data, GroupVar, Groups, Use, FileOut = getwd(), FileIn,
  Pattern, LatentNames)

Arguments

FS

Number of factors for extraction

Data

The data file to be used. Must be a real loaded dataset.

GroupVar

The multigroup variable name.

Use

Numeric indication of variables for usevariables.

FileOut

The folder you want the created mplus scripts sent to.

FileIn

The file in which the data (.dat) file is kept. Missing coded as "."

Pattern

A list where elements 1 to N consist of the number of the first and last item assigned to target loadings.

LatentNames

The names to be assigned to the 1 to N requested latent variables

Examples

1
2
3
4
5
6
7
data(simData)
require(MplusAutomation)
prepareMplusData(simData, filename="ESEM.dat")
esemInvaTarget(2, simData, GroupVar = "TbyG", c("treatM", "contM", "treatF", "contF"),
               Use = 1:12, FileIn="ESEM.dat",  Pattern=list(c(1,6), c(7,12)),
               LatentNames=c("Latent1", "Latent2")
               )

pdparker/ESEM_Package documentation built on May 24, 2019, 11:45 p.m.