| InformativeTesting {lavaan} | R Documentation |
Testing inequality constrained Hypotheses in SEM
InformativeTesting(model = NULL, data, constraints = NULL, R = 1000L,
type = "bollen.stine", return.LRT = TRUE, calibrate = FALSE,
calibrate.R = 500L, calibrate.alpha = 0.05,
parallel = c("no", "multicore", "snow"), ncpus = 1L,
cl = NULL, verbose = FALSE, stoptest = NULL,
conclusion = FALSE, ...)
model |
Model syntax specifying the model. See |
data |
The data frame containing the observed variables being used to fit the model. |
constraints |
The imposed inequality constraints on the model. |
R |
Integer; number of bootstrap draws. Default value is set to 1000. |
type |
If |
return.LRT |
Logical; if |
calibrate |
Logical; if |
calibrate.R |
Integer; number of double bootstrap draws. Only used if
|
calibrate.alpha |
The significance level to compute the adjusted alpha
based on the plugin p-values. Only used if |
parallel |
The type of parallel operation to be used (if any). If missing, the default is "no". |
ncpus |
Integer: number of processes to be used in parallel operation: typically one would chose this to the number of available CPUs. |
cl |
An optional parallel or snow cluster for use if
|
verbose |
Logical; if |
stoptest |
The |
conclusion |
Logical; if |
... |
Other named arguments from the lavaan package which are passed to
the function. For example |
An object of class InformativeTesting for which a summary and a plot method is available.
Leonard Vanbrabant l.g.f.vanbrabant@uu.nl
Van de Schoot, R., Hoijtink, H., & Dekovic, M. (2010). Testing inequality constrained hypotheses in SEM models. Structural Equation Modeling, 17, 443-463.
Van de Schoot, R., Strohmeier, D. (2011). Testing informative hypotheses in SEM increases power: An illustration contrasting classical. International Journal of Behavioral Development 35(2), 180-190.
#Multiple regression
model <- '
y1 ~ b1*x1 + b2*x2 + b3*x3 +
start(1.8)*x1 + start(0.017)*x2 + start(-0.31)*x3
y1~~start(5.7)*y1
'
constraints <-'
b2 < b1
b3 < b1
'
#We only generate 5 bootstrap samples and 2 double bootstraps;
#in practice you may wish to use a much higher number.
example <- InformativeTesting(model = model, data = PoliticalDemocracy,
constraints = constraints, R = 5,
type = "bollen.stine",
calibrate = TRUE, calibrate.R = 2,
calibrate.alpha = 0.05)
example
summary(example)
#plot(example)