lavaSearch2 {lavaSearch2} | R Documentation |
Tools for Model Specification in the Latent Variable Framework
Description
The package contains three main functionalities:
-
compare2
,summary2
: Wald tests/robust Wald tests/F-tests/robust F-tests with improved control of the type 1 error in small samples. -
glht2
: adjustment for multiple comparisons when doing inference for multiple latent variable models. -
modelsearch2
: searching for local dependencies with adjustment for multiple comparisons.
It contains other useful functions such as:
-
calibrateType1
: simulation study of the type 1 error of Wald tests. -
createContrast
: user-friendly function generating a contrast matrix. -
getVarCov2
: reconstruct the conditional variance covariance matrix. -
iidJack
: extract the jackknife iid decomposition.
Details
The latent variable models (LVM) considered in this package can be written
as a measurement model:
and a structural model:
where is the variance covariance matrix of the residuals
,
and is the variance covariance matrix of the residuals
.
The corresponding conditional mean is:
The package aims to provides tool for testing linear hypotheses on the model coefficients
,
,
,
,
,
,
,
.
Searching for local dependency enable to test whether the proposed model is too simplistic and if so to identify which additional coefficients should be added to the model.
Limitations
'lavaSearch2' has been design for Gaussian latent variable models. This means that it may not work / give valid results:
in presence of censored or binary outcomes.
with stratified models (i.e. object of class
multigroup
).