Returns a data frame of item fit statistics, difficulty parameters, and the proportion of pro-environmental responses for each REBL item from an eRm Rasch model. Item fit statistics help assess how well individual items conform to the Rasch model expectations.
Value
A data frame containing:
- rebl_item
Character. REBL item names
- prop_peb
Numeric. Proportion of pro-environmental responses (0-1)
- i.fit
Numeric. Infit statistics from eRm::itemfit()
- i.outfitMSQ
Numeric. Outfit mean square statistics
- eta
Numeric. Item difficulty parameters
- eta_se
Numeric. Standard errors of difficulty parameters
Examples
if (FALSE) { # \dontrun{
# Create sample REBL data
df <- data.frame(
id = 1:100,
rebl_1 = sample(0:1, 100, replace = TRUE),
rebl_2 = sample(0:1, 100, replace = TRUE),
rebl_3 = sample(0:1, 100, replace = TRUE)
)
rebl_items <- c("rebl_1", "rebl_2", "rebl_3")
# Fit Rasch model
model <- get_rasch_model(df, "id", rebl_items, type = "cml")
# Get item fit statistics
item_fits <- get_item_fits(model, df, rebl_items)
print(item_fits)
} # }