A function to explore reasons for person misfit.

irt_model_pfa(wizirt_fit, pfa = NULL, predictors = NULL, bins = 5)

Arguments

wizirt_fit

An object of class wizirt (i.e. from fit_wizirt)

pfa

An object of class wizirt_pfa (i.e. from irt_person_fit)

predictors

Either a matrix or dataframe with a row per person and a column per predictor.

bins

Numeric. How many bins to break items into. Sorted by difficulty then broken into bins. If items cannot fit equally into bins, the bins of easier items will take extras.