Learn R Programming

rpf (version 0.3)

observedSumScore: Compute the observed sum-score

Description

Compute the observed sum-score

Usage

observedSumScore(grp, ..., mask, summary = TRUE)

Arguments

grp
a list with spec, param, and data
...
Not used. Forces remaining arguments to be specified by name.
mask
a vector of logicals indicating which items to include
summary
whether to return a summary (default) or per-row scores

Examples

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

Run the code above in your browser using DataLab