LRtest.psy {exhaustiveRasch} | R Documentation |
itemfit statistics for 'psychotools' Anderson's likelihood ratio test for 'psychotools'
Description
itemfit statistics for 'psychotools' Anderson's likelihood ratio test for 'psychotools'
Usage
LRtest.psy(model, modelType, splitcr = "median", splitseed = NULL)
Arguments
model |
an object of 'psychotools' class 'raschmodel', 'pcmodel' or 'rsmodel' (a model previously fit using the 'psychotools' package) matching the value of modelType. |
modelType |
a character value defining the type of Rasch model. Possible values: "RM", "PCM", "RSM" |
splitcr |
Split criterion for subject raw score splitting for test_LR. "median" uses the median as split criterion, "mean" performs a mean split, "random" performs a random split (in this case, the seed can be set with the "splitseed" argument. splitcr can also be a vector which assigns each person to a certain subgroup (typically an external criterion). This vector can be numeric, character or a factor. |
splitseed |
seed for random split |
Value
the p-value of the likelihood-ratio test.
Examples
model <- psychotools::raschmodel(ADL[c(6,7,12,14,15)])
LRtest.psy(model=model, modelType="RM", splitcr="random", splitseed=332)