Permutation Test for a Local Structural Equation Model
Performs a permutation test for testing the hypothesis that model parameter are independent of a moderator variable (see Hildebrandt, Wilhelm, & Robitzsch, 2009; Hildebrandt, Luedtke, Robitzsch, Sommer, & Wilhelm, 2016).
lsem.permutationTest(lsem.object, B=1000, residualize=TRUE, verbose=TRUE) ## S3 method for class 'lsem.permutationTest' summary(object, file=NULL, digits=3, ...) ## S3 method for class 'lsem.permutationTest' plot(x, type="global", stattype="SD", parindex=NULL, sig_add=TRUE, sig_level=0.05, sig_pch=17, nonsig_pch=2, sig_cex=1, sig_lab="p value", stat_lab="Test statistic", moderator_lab=NULL, digits=3, title=NULL, parlabels=NULL, ask=TRUE, ...)
lsem.object |
Fitted object of class |
B |
Number of permutation samples |
residualize |
Optional logical indicating whether residualization of the moderator should be performed for each permutation sample. |
verbose |
Optional logical printing information about computation progress. |
object |
Object of class |
file |
A file name in which the summary output will be written. |
digits |
Number of digits. |
... |
Further arguments to be passed. |
x |
Object of class |
type |
Type of the statistic to be plotted. If |
stattype |
Type of test statistics. Can be |
parindex |
Vector of indices of selected parameters. |
sig_add |
Logical indicating whether significance values (p values) should be displayed. |
sig_level |
Significance level. |
sig_pch |
Point symbol for significant values. |
nonsig_pch |
Point symbol for non-significant values. |
sig_cex |
Point size for graphic displaying p values |
sig_lab |
Label for significance value (p value). |
stat_lab |
Label of y axis for graphic with pointwise test statistic |
moderator_lab |
Label of the moderator. |
title |
Title of the plot. Can be a vector. |
parlabels |
Labels of the parameters. Can be a vector. |
ask |
A logical which asks for changing the graphic for each parameter. |
List with following entries
teststat |
Data frame with global test statistics. The statistics
are |
parameters_pointwise_test |
Data frame with pointwise test statistics. |
parameters |
Original parameters. |
parameters |
Parameters in permutation samples. |
parameters_summary |
Original parameter summary. |
parameters_summary_M |
Mean of each parameter in permutation sample. |
parameters_summary_SD |
Standard deviation (SD) statistic in permutation slope. |
parameters_summary_MAD |
Mean absolute deviation (MAD) statistic in permutation sample. |
parameters_summary_MAD |
Linear slope parameter in permutation sample. |
nonconverged_rate |
Percentage of permuted dataset in which a LSEM model did not converge |
Alexander Robitzsch, Oliver Luedtke, Andrea Hildebrandt
Hildebrandt, A., Luedtke, O., Robitzsch, A., Sommer, C., & Wilhelm, O. (2016). Exploring factor model parameters across continuous variables with local structural equation models. Multivariate Behavioral Research, 51(2-3), 257-278. doi: 10.1080/00273171.2016.1142856
Hildebrandt, A., Wilhelm, O., & Robitzsch, A. (2009). Complementary and competing factor analytic approaches for the investigation of measurement invariance. Review of Psychology, 16, 87-102.
For Examples see lsem.estimate
.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.