| lavTest | R Documentation | 
Compute a variety of test statistics evaluating the global fit of the model.
    lavTest(lavobject, test = "standard", scaled.test = "standard",
            output = "list", drop.list.single = TRUE)
lavobject | 
 An object of class   | 
test | 
 Character vector. Multiple names of test statistics can be provided.
If   | 
scaled.test | 
 Character. Choose the test statistic 
that will be scaled (if a scaled test statistic is requested). 
The default is   | 
output | 
 Character. If   | 
drop.list.single | 
 Logical. Only used when   | 
If output = "list": a nested list with test statistics, or if
only a single test statistic is requested (and 
drop.list.single = TRUE), a list with details for this test
statistic. If output = "text": the text is printed, and a
nested list of test statistics (including an info attribute) is
returned.
HS.model <- '
    visual  =~ x1 + x2 + x3
    textual =~ x4 + x5 + x6
    speed   =~ x7 + x8 + x9
'
fit <- cfa(HS.model, data = HolzingerSwineford1939)
lavTest(fit, test = "browne.residual.adf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.