Learn R Programming

rpf (version 0.3)

itemOutcomeBySumScore: Produce an item outcome by observed sum-score table

Description

Produce an item outcome by observed sum-score table

Usage

itemOutcomeBySumScore(grp, mask, interest)

Arguments

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

Examples

Run this code
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)

Run the code above in your browser using DataLab