10.6 Pattern Classification Accuracy
In addition to classification accuracy at individual attribute level, we may be also interested in pattern level accuracy.
Given a finite sample of size , we can estimate a pattern level accuracy (Iaconangelo, 2017) as in
The following code finds the pattern level accuracy for attribute profile 000:
Code
library(GDINA)
<- ecpe$dat
Y <- ecpe$Q
Q <- GDINA(Y, Q, model = "GDINA", verbose = 0)
lcdm <- exp(indlogPost(lcdm))
post <- personparm(lcdm, "MAP")[, 1:3]
MAP <- mean(post[which(rowSums(MAP) == 0), 1])
p000 p000
## [1] 0.8144