collapse_data: Collapses data for a given collapsing function

Description Usage Arguments Value Examples

View source: R/collapse_data.R

Description

Collapses data for a given collapsing function

Usage

1
collapse_data(data, collapse, constraint)

Arguments

data

A dataset with J columns and n rows.

collapse

A list of length J indicating the scoring function to collapse from.

constraint

Constraint is either "rasch" or "gpcm" depending on which parameter constraints should be run.

Value

A list containing the collapsed data and a indicator vector for which parameters to test with the IMT. If no collapsing has occurred, the default indicator vector tests all parameters of the last item.

Examples

1
2
3
4
data(dataset)
collapse = split(rep(c(1:4), 10), rep(1:10, each = 4))
my_data = collapse_data(dataset, collapse, "rasch")
# See vignette("IMT-vignette") for more examples.

IMTest documentation built on May 1, 2019, 9:06 p.m.