Learn R Programming

ItemResponseTrees (version 0.2.5)

write_mplus_input: Prepare an Mplus Input File

Description

This is an internal function used by irtree_fit_mplus(). It receives its inputs from the model object and the data set and returns an object of class MplusAutomation::mplusObject.

Usage

write_mplus_input(
  object = NULL,
  pseudoitems = NULL,
  data_file = NULL,
  fsco_file = NULL,
  save_fscores = FALSE,
  quadpts = NULL,
  estimator = NULL,
  link = NULL,
  analysis_list = list()
)

Arguments

object

Object of class irtree_model. See irtree_model for more information.

pseudoitems

Data frame as returned from irtree_recode().

data_file

String, the full file path of the data set.

fsco_file

String, the file name used by Mplus to store the factor scores.

save_fscores

Logical, whether to save FSCORES or not.

quadpts

This is passed to argument 'INTEGRATION' of Mplus. Thus, it may be an integer specifying the number of integration points for the Mplus default of rectangular numerical integration (e.g., quadpts = 15). Or it may be a string, which gives more fine grained control (e.g., quadpts = "MONTECARLO(2000)").

estimator

String, passed to argument 'ESTIMATOR' in Mplus.

link

String, passed to argument 'LINK' in Mplus. Specifies the link function.

analysis_list

Named list of strings passed to Mplus' argument ANALYSIS. See examples below.

Value

A list of of class MplusAutomation::mplusObject