R 문항반응이론

1 개요[ | ]

R IRT
R 문항반응이론

2 패키지[ | ]

3 예시[ | ]

df <- read.csv("https://raw.githubusercontent.com/jmnote/ds/main/github.com/cran/ltm/data/LSAT.csv")
library(ltm)
model <- tpm(df)

cat('로그우도:', model$log.Lik, "\n")
cat('AIC:', summary(model)$AIC, "\n")
cat('BIC:', summary(model)$BIC, "\n")
# 계수
coef(model)
# 문항특성곡선
plot(model)
# 문항정보곡선
plot(model, "IIC")
# 검사정보곡선
plot(model, "IIC", items=0)
# 능력 분포 1 (커널 밀도)
plot(factor.scores(model))
# 능력 분포 2 (히스토그램)
temp <- factor.scores(model)[[1]]
temp <- as.vector(rep(temp$z1, temp$Obs))
hist(temp)
# 능력 분포 3 (막대그래프)
temp <- factor.scores(model)[[1]]
temp$z1 <- round(temp$z1,2)
temp <- aggregate(Obs ~ z1, temp, sum)
barplot(Obs ~ z1, temp)

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}