Learn R Programming

MplusAutomation (version 1.1.1)

summary.mplusObject: Summarize an mplusObject

Description

This is a method for summarizing an mplusObject.

Usage

# S3 method for mplusObject
summary(object, verbose = FALSE, ...)

Value

NULL Called for its side effect of printing a model summary to the console

Arguments

object

An object of class mplusObject

verbose

Logical whether to print verbose output. Defaults to FALSE.

...

Additional arguments to pass on (not currently used)

Author

Joshua F. Wiley <jwiley.psych@gmail.com>

See Also

Other Mplus-Formatting: coef.mplus.model(), confint.mplus.model(), extract(), print.MplusRstructure()

Examples

Run this code
if (FALSE) {
# simple example of a model using builtin data
# demonstrates use
test <- mplusObject(
  TITLE = "test the MplusAutomation Package;",
  MODEL = "
    mpg ON wt hp;
    wt WITH hp;",
  usevariables = c("mpg", "wt", "hp"),
  rdata = mtcars)

 res <- mplusModeler(test, "mtcars.dat", modelout = "model1.inp", run = 1L)

# example of the summary method
summary(res)

# example of verbose output
summary(res, verbose=TRUE)

# remove files
unlink("mtcars.dat")
unlink("model1.inp")
unlink("model1.out")
unlink("Mplus Run Models.log")
}

Run the code above in your browser using DataLab