itemOutcomeBySumScore {rpf} | R Documentation |
Produce an item outcome by observed sum-score table
itemOutcomeBySumScore(grp, mask, interest)
grp |
a list with spec, param, and data |
mask |
a vector of logicals indicating which items to include |
interest |
index or name of the item of interest |
set.seed(1) spec <- list() spec[1:3] <- rpf.grm(outcomes=3) param <- sapply(spec, rpf.rparam) data <- rpf.sample(5, spec, param) colnames(param) <- colnames(data) grp <- list(spec=spec, param=param, data=data) itemOutcomeBySumScore(grp, c(FALSE,TRUE,TRUE), 1L)