Description Usage Arguments Details Value Note Author(s) See Also Examples
Collapses response categories if cell frequencies by group are below a minimum threshold specified by minCell and returns a vector of recoded responses.
1 |
resp |
a vector of item responses |
group |
a vector of group designations |
minCell |
a minimum cell frequency |
Collapses item response categories in resp if the two-way contingency table (resp x group) has cell frequencies less than the minimum cell count threshold specified by minCell.
a numeric vector of the same length as resp with collapsed/recoded values.
The lowest item response category/score should be coded as 1 not 0 (e.g., 1, 2, 3, 4, 5; and not 0, 1, 2, 3, 4). There must be at least two unique categories after collapsing/recoding.
Seung W. Choi <choi.phd@gmail.com>
1 2 3 4 5 |
Loading required package: mirt
Loading required package: stats4
Loading required package: lattice
Loading required package: rms
Loading required package: Hmisc
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2
Attaching package: ‘Hmisc’
The following objects are masked from ‘package:base’:
format.pval, units
Loading required package: SparseM
Attaching package: ‘SparseM’
The following object is masked from ‘package:base’:
backsolve
[1] 1 1 2 1 1 2 2 1 2 2 1 2 2 1 1 2 1 2 2 2 2 1 2 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.