make_mplus_gpcm_nrm_syntax: Preparing Mplus code to estimate RS models

View source: R/resp_styles_to_mplus.R

make_mplus_gpcm_nrm_syntaxR Documentation

Preparing Mplus code to estimate RS models

Description

Prepares Mplus model syntax describing how items are loaded by latent traits in a GPCM specification of a NRM.

Usage

make_mplus_gpcm_nrm_syntax(
  scoringColumn,
  latentTraitName,
  items,
  reverseCoded,
  itemCategories,
  fixSlopes
)

Arguments

scoringColumn

a one-column matrix (column of a scoring matrix)

latentTraitName

a string with latent variable name

items

a character vector with item names

reverseCoded

a character vector with names of reverse-coded items

itemCategories

a data frame with columns named item and value storing unique (non-NA) values of items that occur in the data

fixSlopes

a logical value indicating whether slopes of the latent trait should be fixed to be the same

Value

A character vector


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