write_mirt_input: Prepare a mirt model

Description Usage Arguments Value

View source: R/fit-mirt.R

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

1

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.


ItemResponseTrees documentation built on July 2, 2020, 2:25 a.m.