mloef.psy: Martin-Loef test for psychotools

View source: R/tests_psychotools.R

mloef.psyR Documentation

Martin-Loef test for psychotools

Description

Martin-Loef test for psychotools

Usage

mloef.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 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

Value

a list containing the test statistic, the degrees of freedom and the p-value of the Martin-Löf test.

Examples

 model <- psychotools::raschmodel(ADL[c(6,7,12,14,15)])
 mloef.psy(model=model, modelType="RM", splitcr="random", splitseed=332)

chrgrebe/exhaustiveRasch documentation built on Dec. 19, 2024, 10:13 a.m.