Skip to contents

Extract person fit statistics from fitted psychometric models. Person fit statistics assess how well each individual's response pattern conforms to the model expectations. Works with both eRm and ltm model objects.

Usage

get_person_fits(model)

Arguments

model

A fitted psychometric model object from either eRm (Rasch models) or ltm package (rasch, ltm, tpm models)

Value

A data frame containing person fit statistics with participant IDs. For eRm models: includes outfit, infit statistics from eRm::personfit(). For ltm models: includes L0, Lz test statistics and p-values from ltm::person.fit().

Examples

if (FALSE) { # \dontrun{
  # With eRm model
  model_erm <- get_rasch_model(df, "id", rebl_items)
  fits_erm <- get_person_fits(model_erm)

  # With ltm model
  model_ltm <- ltm::rasch(df[rebl_items])
  fits_ltm <- get_person_fits(model_ltm)
} # }