collapse_data {IMTest} | R Documentation |
Collapses data for a given collapsing function
Description
Collapses data for a given collapsing function
Usage
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
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.
[Package IMTest version 1.0.0 Index]