View source: R/tests_psychotools.R
mloef.psy | R Documentation |
Martin-Loef test for psychotools
mloef.psy(model, modelType, splitcr = "median", splitseed = NULL)
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 to define the item groups. "median" and "mean" split items in two groups based on their items' raw scores median or mean. "random" performs a random split (in this case, the seed can be set with the "splitseed" argument. splitcr can also be a vector of length k (where k denotes the number of items) that takes two or more distinct values to define groups used for the Martin-Löf Test. |
splitseed |
seed for random split |
a list containing the test statistic, the degrees of freedom and the p-value of the Martin-Löf test.
model <- psychotools::raschmodel(ADL[c(6,7,12,14,15)])
mloef.psy(model=model, modelType="RM", splitcr="random", splitseed=332)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.