R 문항반응 생성

1 개요[ | ]

R 문항반응 생성

2 이분 문항반응 생성[ | ]

library(ltm)

n_people <- 12 # 학생 수
n_items <- 4   # 문항 수

thetas <- cbind(seq(-2,2,len=n_items),1) # 문항 난이도를 -2, 2 사이로
df <- data.frame(rmvlogis(n_people, thetas))
df

3 다분 문항반응 생성[ | ]

3.1 영점조정 안함 (기본)[ | ]

library(ltm)

n_people <- 15    # 학생 수
n_items <- 7      # 문항 수
n_categories <- 5 # 부분점수 종류 수
zero_point_calibration <- 0 # 영점조정 안함 (1~5점)

thetas <- rep(list(c(seq(-1, 1, len=n_categories-1), 1.2)),n_items)
df <- data.frame(rmvordlogis(n_people, thetas)-zero_point_calibration)
df

3.2 영점조정[ | ]

library(ltm)

n_people <- 12    # 학생 수
n_items <- 5      # 문항 수
n_categories <- 3 # 부분점수 종류 수
zero_point_calibration <- 1 # 영점조정 (0~2점)

thetas <- rep(list(c(seq(-1, 1, len=n_categories-1), 1.2)),n_items)
df <- data.frame(rmvordlogis(n_people, thetas)-zero_point_calibration)
df

4 같이 보기[ | ]

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