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

Description Usage Arguments Examples

View source: R/util.R

Description

Produce an item outcome by observed sum-score table

Usage

1
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

1
2
3
4
5
6
7
8
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)

rpf documentation built on Nov. 17, 2017, 4:27 a.m.