rasch: Function estimate Rasch models

View source: R/modeling.R

raschR Documentation

Function estimate Rasch models

Description

Uses TAM::tam.mml() under the hood, because the theta estimates from this package most closely matched those from Winsteps (specifically for extreme) cases. Can estimate models from either a list tests or a single test. Takes care of the item prep (i.e., recoding NA values to 0) and, optionally, item anchoring.

Usage

rasch(test, omit_field_test = TRUE, ...)

Arguments

test

Either a list of test score data from which to estimate models or a single data frame with the item-level data. Note, this can be all tests. It does not have to be a list of only one content area, for example.

omit_field_test

Should field test items (those that are not anchored) be omitted in the estimation? Defaults to TRUE. Note this should always be TRUE when person estimates are extracted from the model.

...

Additional arguments passed to TAM::tam.mml()

Value

A list of models

Examples

## Not run: 
  library(exirt)
  all_tests <- dbprocess::get_items(db = "2021")
  models <- rasch(all_tests)

## End(Not run)

UO-BRT/exirt documentation built on Jan. 29, 2023, 8:51 a.m.