R: Compute the observed sum-score

observedSumScore {rpf} | R Documentation

## 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

    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)

[Package rpf version 0.56.1 Index]