Skip to contents

Extract person parameters (REBL scores) from a fitted Rasch model. Optionally includes person fit statistics to assess how well each person's response pattern fits the Rasch model.

Usage

get_rebl_scores(model, df = NULL, rebl_items = NULL)

Arguments

model

A fitted eRm Rasch model object from get_rasch_model()

df

A data.frame containing all the REBL items and a unique id

rebl_items

A character vector REBL item names

Value

A dataframe with participant IDs, REBL scores, and optionally person fit statistics. When include_fits is TRUE, includes columns for outfit, infit, and other fit measures from eRm::personfit()

Examples

if (FALSE) { # \dontrun{
  # Fit model and get scores
  model <- get_rasch_model(df, "id", rebl_items)
  scores <- get_rebl_scores(model, include_fits = TRUE)

  # Get scores without fit statistics
  scores_only <- get_rebl_scores(model, include_fits = FALSE)
} # }