| permuteMeasEq-class {semTools} | R Documentation |
Class for the Results of Permutation Randomization Tests of Measurement Equivalence and DIF
Description
This class contains the results of tests of Measurement Equivalence and Differential Item Functioning (DIF).
Usage
## S4 method for signature 'permuteMeasEq'
show(object)
## S4 method for signature 'permuteMeasEq'
summary(object, alpha = 0.05, nd = 3, extra = FALSE)
## S4 method for signature 'permuteMeasEq'
hist(x, ..., AFI, alpha = 0.05, nd = 3,
printLegend = TRUE, legendArgs = list(x = "topleft"))
Arguments
object, x |
object of class |
alpha |
alpha level used to draw confidence limits in |
nd |
number of digits to display |
extra |
|
... |
Additional arguments to pass to |
AFI |
|
printLegend |
|
legendArgs |
|
Value
The
showmethod prints a summary of the multiparameter omnibus test results, using the user-specified AFIs. The parametric (\Delta)\chi^2test is also displayed.The
summarymethod prints the same information from theshowmethod, but whenextra = FALSE(the default) it also provides a table summarizing any requested follow-up tests of DIF using modification indices in slotMI.obs. The user can also specify analphalevel for flagging modification indices as significant, as well asnd(the number of digits displayed). For each modification index, the p value is displayed using a central\chi^2distribution with the df shown in that column. Additionally, a p value is displayed using the permutation distribution of the maximum index, which controls the familywise Type I error rate in a manner similar to Tukey's studentized range test. If any indices are flagged as significant using thetukey.p.value, then a message is displayed for each flagged index. The invisibly returneddata.frameis the displayed table of modification indices, unlesspermuteMeasEqwas called withparam = NULL, in which case the invisibly returned object isobject. Ifextra = TRUE, the permutation-based p values for each statistic returned by theextrafunction are displayed and returned in adata.frameinstead of the modification indices requested in theparamargument.The
histmethod returns a list oflength == 2, containing the arguments for the call tohistand the arguments to the call forlegend, respectively. This list may facilitate creating a customized histogram ofAFI.dist,MI.dist, orextra.dist
Slots
PTA
data.framereturned by a call toparTableon the constrained modelmodelTypeA character indicating the specified
modelTypein the call topermuteMeasEqANOVAA
numericvector indicating the results of the observed (\Delta)\chi^2test, based on the central\chi^2distributionAFI.obsA vector of observed (changes in) user-selected fit measures
AFI.distThe permutation distribution(s) of user-selected fit measures. A
data.framewithn.Permutationsrows and one column for eachAFI.obs.AFI.pvalA vector of p values (one for each element in slot
AFI.obs) calculated using slotAFI.dist, indicating the probability of observing a change at least as extreme asAFI.obsif the null hypothesis were trueMI.obsA
data.frameof observed Lagrange Multipliers (modification indices) associated with the equality constraints or fixed parameters specified in theparamargument. This is a subset of the output returned by a call tolavTestScoreon the constrained model.MI.distThe permutation distribution of the maximum modification index (among those seen in slot
MI.obs$X2) at each permutation of group assignment or ofcovariatesextra.obsIf
permuteMeasEqwas called with anextrafunction, the output when applied to the original data is concatenated into this vectorextra.distA
data.frame, each column of which contains the permutation distribution of the corresponding statistic in slotextra.obsn.PermutationsAn
integerindicating the number of permutations requested by the usern.ConvergedAn
integerindicating the number of permuation iterations which yielded a converged solutionn.nonConvergedAn
integervector of lengthn.Permutationsindicating how many times group assignment was randomly permuted (at each iteration) before converging on a solutionn.SparseOnly relevant with
orderedindicators whenmodelType == "mgcfa". Anintegervector of lengthn.Permutationsindicating how many times group assignment was randomly permuted (at each iteration) before obtaining a sample with all categories observed in all groups.oldSeedAn
integervector storing the value of.Random.seedbefore runningpermuteMeasEq. Only relevant when using a parallel/multicore option and the originalRNGkind() != "L'Ecuyer-CMRG". This enables users to restore their previous.Random.seedstate, if desired, by running:.Random.seed[-1] <- permutedResults@oldSeed[-1]
Objects from the Class
Objects can be created via the
permuteMeasEq function.
Author(s)
Terrence D. Jorgensen (University of Amsterdam; TJorgensen314@gmail.com)
See Also
Examples
# See the example from the permuteMeasEq function