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
show
method prints a summary of the multiparameter omnibus test results, using the user-specified AFIs. The parametric (\Delta
)\chi^2
test is also displayed.The
summary
method prints the same information from theshow
method, 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 analpha
level 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^2
distribution 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.frame
is the displayed table of modification indices, unlesspermuteMeasEq
was called withparam = NULL
, in which case the invisibly returned object isobject
. Ifextra = TRUE
, the permutation-based p values for each statistic returned by theextra
function are displayed and returned in adata.frame
instead of the modification indices requested in theparam
argument.The
hist
method returns a list oflength == 2
, containing the arguments for the call tohist
and the arguments to the call forlegend
, respectively. This list may facilitate creating a customized histogram ofAFI.dist
,MI.dist
, orextra.dist
Slots
PT
A
data.frame
returned by a call toparTable
on the constrained modelmodelType
A character indicating the specified
modelType
in the call topermuteMeasEq
ANOVA
A
numeric
vector indicating the results of the observed (\Delta
)\chi^2
test, based on the central\chi^2
distributionAFI.obs
A vector of observed (changes in) user-selected fit measures
AFI.dist
The permutation distribution(s) of user-selected fit measures. A
data.frame
withn.Permutations
rows and one column for eachAFI.obs
.AFI.pval
A 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.obs
if the null hypothesis were trueMI.obs
A
data.frame
of observed Lagrange Multipliers (modification indices) associated with the equality constraints or fixed parameters specified in theparam
argument. This is a subset of the output returned by a call tolavTestScore
on the constrained model.MI.dist
The permutation distribution of the maximum modification index (among those seen in slot
MI.obs$X2
) at each permutation of group assignment or ofcovariates
extra.obs
If
permuteMeasEq
was called with anextra
function, the output when applied to the original data is concatenated into this vectorextra.dist
A
data.frame
, each column of which contains the permutation distribution of the corresponding statistic in slotextra.obs
n.Permutations
An
integer
indicating the number of permutations requested by the usern.Converged
An
integer
indicating the number of permuation iterations which yielded a converged solutionn.nonConverged
An
integer
vector of lengthn.Permutations
indicating how many times group assignment was randomly permuted (at each iteration) before converging on a solutionn.Sparse
Only relevant with
ordered
indicators whenmodelType == "mgcfa"
. Aninteger
vector of lengthn.Permutations
indicating how many times group assignment was randomly permuted (at each iteration) before obtaining a sample with all categories observed in all groups.oldSeed
An
integer
vector storing the value of.Random.seed
before runningpermuteMeasEq
. Only relevant when using a parallel/multicore option and the originalRNGkind() != "L'Ecuyer-CMRG"
. This enables users to restore their previous.Random.seed
state, 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