Learn R Programming

ItemResponseTrees (version 0.2.5)

write_mirt_input: Prepare a mirt model

Description

This is an internal function used by irtree_fit_mirt(). It receives its inputs from the model object and the data set and returns a mirt::mirt.model object.

Usage

write_mirt_input(object = NULL, data = NULL)

Arguments

object

Object of class irtree_model. See irtree_model for more information.

data

Data frame containing containing one row per respondent and one column per variable. The variable names must correspond to those used in object.

Value

A list with three elements. mirt_string is the mirt::mirt.model object; itemtype can be passed to mirt::mirt(); lambda is the modified lambda matrix from the object-argument.