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.
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)
} # }