irtree_fit_mirt: Fit an 'irtree_model' using mirt

Description Usage Arguments

View source: R/fit-mirt.R

Description

This function takes a data frame and a model object and runs the model in mirt.

Usage

1
2
3
4
5
6
7
8
irtree_fit_mirt(
  object = NULL,
  data = NULL,
  link = "logit",
  verbose = interactive(),
  control = control_mirt(),
  improper_okay = FALSE
)

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.

link

String specifying the link function. Only logit is implemented in mirt.

verbose

Logical indicating whether output should be printed to the console.

control

List. The allowed elements of this list depend on the engine. Use control_mirt(), control_mplus(), or control_tam() for convenience. Note that the fit() function does not use ..., but that you can use the control_*() functions to pass additional arguments.

improper_okay

Logical indicating whether the model should also be fit if it is not a proper IR-tree model. Set this only to TRUE if you really know what you are doing.


hplieninger/ItemResponseTrees documentation built on Nov. 13, 2020, 12:17 p.m.