
Assess Classification Accuracy
assess_classification_accuracy.RdCompares estimated skill mastery profiles against known true states to calculate classification accuracy, Cohen's Kappa, and profile matching rates. Useful for simulation studies or known-group diagnostics.
Usage
assess_classification_accuracy(
skill_profiles,
true_data,
mapping_list = NULL,
threshold = 0.5,
random_inspect = 10
)Arguments
- skill_profiles
An
I x Kmatrix or dataframe of estimated mastery probabilities, typically theskill_profilesoutput fromgenerate_summary_tables().- true_data
A dataframe containing the true mastery states (0 or 1).
- mapping_list
A named list mapping the expected model skill names to the column names in
true_data. For example:list("Addition" = "true_add", "Subtraction" = "true_sub").- threshold
Numeric. The threshold used to binarize estimates. Default is 0.5.
- random_inspect
Integer. The number of random participants to print detailed comparisons for. Default is 10.