mstDIF-Methods | R Documentation |
print
and summary
methods for objects of the
mstDIF-class
, as returned by mstDIF
. See details
for more information about the methods.
## S3 method for class 'mstDIF' print(x, ...) ## S3 method for class 'mstDIF' summary(object, DIF_type = "overall", ordered = TRUE, ...)
x |
an object of class |
... |
other arguments passed to the method. |
object |
an object of class |
DIF_type |
a string that should one or more of "overall", "uniform", "non-uniform", "all". |
ordered |
logical: should the summary be ordered according to the obtained p-values (in ascending order)? |
The print
method prints some basic information about the
mstDIF-class
object.
The summary
method computes a data frame with a row for each item
that was included in the test. The columns are:
The name of the item
The value for the used statistic per item
The p-value per item
An effect-size for the DIF-test, if applicable
## load data data("toydata") ## fit 2PL model using mirt mirt_model <- mirt::mirt(toydata$resp, model = 1) ## test DIF along a contiuous covariate DIFtest <- mstDIF(mirt_model, DIF_covariate = toydata$group_cont, method = "analytical") ## print DIFtest ## summary summary(DIFtest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.