mplus.print {misty} | R Documentation |
Print Mplus Output
Description
This function prints the input command sections and the result sections of a Mplus
output file (.out
) on the R console. By default, the function prints
(1) the input command section excluding the TITLE
section, the OUTPUT
section, and the names of the variables in the data set (NAMES
option),
and (2) selected result sections, e.g., short Summary of Analysis
, short
Summary of Data
, Model Fit Information
, and Model Results
.
Usage
mplus.print(x, print = c("all", "input", "result"),
input = c("all", "default", "data", "variable", "define",
"analysis", "model", "montecarlo", "mod.pop", "mod.cov",
"mod.miss", "message"),
result = c("all", "default", "summary.analysis.short",
"summary.data.short", "random.starts", "summary.fit",
"mod.est", "fit", "class.count", "classif",
"mod.result", "total.indirect"),
exclude = NULL, variable = FALSE, not.input = TRUE, not.result = TRUE,
write = NULL, append = TRUE, check = TRUE, output = TRUE)
Arguments
x |
a character string indicating the name of the Mplus output
file with or without the file extension |
print |
a character vector indicating which results to show, i.e.
|
input |
a character vector specifiying Mplus input command sections |
result |
a character vector specifiying Mplus result sections included in the output (see 'Details'). |
exclude |
a character vector specifiying Mplus input command or result sections excluded from the output (see 'Details'). |
variable |
logical: if |
not.input |
logical: if |
not.result |
logical: if |
write |
a character string naming a file for writing the output into
a text file with file extension |
append |
logical: if |
check |
logical: if |
output |
logical: if |
Details
- Input Command Sections
Following input command sections can be selected by using the
input
argument or excluded by using theexclude
argument:"title"
for theTITLE
command used to provide a title for the analysis."data"
for theDATA
command used to provide information about the data set to be analyzed."data.imp"
for theDATA IMPUTATION
command used to create a set of imputed data sets using multiple imputation methodology."data.wl"
for theDATA WIDETOLONG
command used to rearrange data from a multivariate wide format to a univariate long format."data.lw"
for theDATA LONGTOWIDE
command used to rearrange a univariate long format to a multivariate wide format."data.tp"
for theDATA TWOPART
command used to create a binary and a continuous variable from a continuous variable with a floor effect for use in two-part moding."data.miss"
for theDATA MISSING
command used to create a set of binary variables that are indicators of missing data or dropout for another set of variables."data.surv"
for theDATA SURVIVAL
command used to create variables for discrete-time survival modeling."data.coh"
for theDATA COHORT
command used to rearrange longitudinal data from a format where time points represent measurement occasions to a format where time points represent age or another time-related variable,"variable"
for theVARIABLE
command used to provide information about the variables in the data set to be analyzed."define"
for theDEFINE
command used to transform existing variables and to create new variables."analysis"
for theANALYSIS
command used to describe the technical details for the analysis."model"
MODEL
for the command used to destribe the model to be estimated."mod.ind"
for theMODEL INDIRECT
command used to request indirect and directd effects and their standard errors."mod.test"
for theMODEL TEST
command used to test restrictions on the parameters in theMODEL
andMODEL CONSTRAINT
commands using the Wald chi-square test."mod.prior"
for theMODEL PRIORS
command used withESTIMATOR IS BAYES
to specify the prior distribution for each parameter."montecarlo"
for theMONTECARLO
command used to set up and carry out a Monte Carlo simulation study."mod.pop"
for theMODEL POPULATION
command used to provivde the population parameter values to be used in data generation using the options of theMODEL
command."mod.cov"
for theMODEL COVERAGE
used to provide the population parameter values to be used for computing coverage."mod.miss"
for theMODEL MISSING
command used to provide information about the population parameter values for the missing data model to be used in the generation of data."output"
for the for theOUTPUT
command used to request additional output beyond that included as the default."savedata"
for theSAVEDATA
command used to save the analysis data and/or a variety of model results in an ASCII file for future use."plot"
for thePLOT
command used to requested graphical displays of observed data and analysis results."message"
for warning and error messsages that have been generated by the program after the input command sections.
Note that all input command sections are requested by specifying
input = "all"
. Theinput
argument is also used to select one (e.g.,input = "model"
) or more than one input command sections (e.g.,input = c("analysis", "model")
), or to request input command sections in addition to the default setting (e.g.,input = c("default", "output")
). Theexclude
argument is used to exclude input command sections from the output (e.g., exclude = "variable").- Result Sections
Following result sections can be selected by using the
input
argument or excluded by using theexclude
argument:"summary.analysis"
for theSUMMARY OF ANALYSIS
section.."summary.analysis.short"
for a shortSUMMARY OF ANALYSIS
section including the number of observations, nuber of groups, estimator, and optimization algorithm."summary.data"
for theSUMMARY OF DATA
section indicating."summary.data.short"
for a shortSUMMARY OF DATA
section including number of clusters, average cluster size, and estimated intraclass correlations."prop.count"
for theUNIVARIATE PROPORTIONS AND COUNTS FOR CATEGORICAL VARIABLES
section."summary.censor"
for theSUMMARY OF CENSORED LIMITS
section."prop.zero"
for theCOUNT PROPORTION OF ZERO, MINIMUM AND MAXIMUM VALUES
section."crosstab"
for theCROSSTABS FOR CATEGORICAL VARIABLES
section."summary.miss"
for theSUMMARY OF MISSING DATA PATTERNS
section."coverage"
for theCOVARIANCE COVERAGE OF DATA
section."basic"
for theRESULTS FOR BASIC ANALYSIS
section."sample.stat"
for theSAMPLE STATISTICS
section."uni.sample.stat"
for theUNIVARIATE SAMPLE STATISTICS
section."random.starts"
for theRANDOM STARTS RESULTS
section."summary.fit"
for theSUMMARY OF MODEL FIT INFORMATION
section."mod.est"
for theTHE MODEL ESTIMATION TERMINATED NORMALLY
message and warning messages from the model estimation."fit"
for theMODEL FIT INFORMATION
section."class.count"
for theFINAL CLASS COUNTS AND PROPORTIONS FOR THE LATENT CLASSES
section."ind.means"
for theLATENT CLASS INDICATOR MEANS AND PROBABILITIES
section."trans.prob"
for theLATENT TRANSITION PROBABILITIES BASED ON THE ESTIMATED MODEL
section."classif"
for theCLASSIFICATION QUALITY
section."mod.result"
for theMODEL RESULTS
andRESULTS FOR EXPLORATORY FACTOR ANALYSIS
section."odds.ratio"
for theLOGISTIC REGRESSION ODDS RATIO RESULTS
section."prob.scale"
for theRESULTS IN PROBABILITY SCALE
section."ind.odds.ratio"
for theLATENT CLASS INDICATOR ODDS RATIOS FOR THE LATENT CLASSES
section."alt.param"
for theALTERNATIVE PARAMETERIZATIONS FOR THE CATEGORICAL LATENT VARIABLE REGRESSION
section."irt.param"
for theIRT PARAMETERIZATION
section."brant.wald"
for theBRANT WALD TEST FOR PROPORTIONAL ODDS
section."std.mod.result"
for theSTANDARDIZED MODEL RESULTS
section."rsquare"
for theR-SQUARE
section."total.indirect"
for theTOTAL, TOTAL INDIRECT, SPECIFIC INDIRECT, AND DIRECT EFFECTS
section."std.total.indirect"
for theSTANDARDIZED TOTAL, TOTAL INDIRECT, SPECIFIC INDIRECT, AND DIRECT EFFECTS
section."std.mod.result.cluster"
for theWITHIN-LEVEL STANDARDIZED MODEL RESULTS FOR CLUSTER
section."fs.comparison"
for theBETWEEN-LEVEL FACTOR SCORE COMPARISONS
section."conf.mod.result"
for theCONFIDENCE INTERVALS OF MODEL RESULTS
section."conf.std.conf"
for theCONFIDENCE INTERVALS OF STANDARDIZED MODEL RESULTS
section."conf.total.indirect"
for theCONFIDENCE INTERVALS OF TOTAL, TOTAL INDIRECT, SPECIFIC INDIRECT, AND DIRECT EFFECTS
section."conf.odds.ratio"
for theCONFIDENCE INTERVALS FOR THE LOGISTIC REGRESSION ODDS RATIO RESULTS
section."modind"
for theMODEL MODIFICATION INDICES
section."resid"
for theRESIDUAL OUTPUT
section."logrank"
for theLOGRANK OUTPUT
section."tech1"
for theTECHNICAL 1 OUTPUT
section."tech2"
for theTECHNICAL 2 OUTPUT
section."tech3"
for theTECHNICAL 3 OUTPUT
section."h1.tech3"
for theH1 TECHNICAL 3 OUTPUT
section."tech4"
for theTECHNICAL 4 OUTPUT
section."tech5"
for theTECHNICAL 5 OUTPUT
section."tech6"
for theTECHNICAL 6 OUTPUT
section."tech7"
for theTECHNICAL 7 OUTPUT
section."tech8"
for theTECHNICAL 8 OUTPUT
section."tech9"
for theTECHNICAL 9 OUTPUT
section."tech10"
for theTECHNICAL 10 OUTPUT
section."tech11"
for theTECHNICAL 11 OUTPUT
section."tech12"
for theTECHNICAL 12 OUTPUT
section."tech13"
for theTECHNICAL 13 OUTPUT
section."tech14"
for theTECHNICAL 14 OUTPUT
section."tech15"
for theTECHNICAL 15 OUTPUT
section."tech16"
for theTECHNICAL 16 OUTPUT
section."svalues"
for theMODEL COMMAND WITH FINAL ESTIMATES USED AS STARTING VALUES
section."stat.fscores"
for theSAMPLE STATISTICS FOR ESTIMATED FACTOR SCORES
section."summary.fscores"
for theSUMMARY OF FACTOR SCORES
section."pv"
for theSUMMARIES OF PLAUSIBLE VALUES
section."plotinfo"
for thePLOT INFORMATION
section."saveinfo"
for theSAVEDATA INFORMATION
section.
Note that all result sections are requested by specifying
result = "all"
. Theresult
argument is also used to select one (e.g.,result = "mod.result"
) or more than one result sections (e.g.,result = c("mod.result", "std.mod.result")
), or to request result sections in addition to the default setting (e.g.,result = c("default", "odds.ratio")
). Theexclude
argument is used to exclude result sections from the output (e.g.,exclude = "mod.result"
).
Value
Returns an object of class misty.object
, which is a list with following
entries:
call |
function call |
type |
type of analysis |
x |
chracter string or misty object |
args |
specification of function arguments |
print |
print objects |
notprint |
character vectors indicating the input commands and result sections not requested |
result |
list with input command sections ( |
Author(s)
Takuya Yanagida
References
Muthen, L. K., & Muthen, B. O. (1998-2017). Mplus User's Guide (8th ed.). Muthen & Muthen.
See Also
read.mplus
, write.mplus
, mplus
,
mplus.update
, mplus.run
, mplus.lca
Examples
## Not run:
#----------------------------------------------------------------------------
# Mplus Example 3.1: Linear Regression
# Example 1a: Default setting
mplus.print("ex3.1.out")
# Example 1b: Print result section only
mplus.print("ex3.1.out", print = "result")
# Example 1c: Print MODEL RESULTS only
mplus.print("ex3.1.out", print = "result", result = "mod.result")
# Example 1d: Print UNIVARIATE SAMPLE STATISTICS in addition to the default setting
mplus.print("ex3.1.out", result = c("default", "uni.sample.stat"))
# Example 1e: Exclude MODEL FIT INFORMATION section
mplus.print("ex3.1.out", exclude = "fit")
# Example 1f: Print all result sections, but exclude MODEL FIT INFORMATION section
mplus.print("ex3.1.out", result = "all", exclude = "fit")
Example 1g: Print result section in a different order
mplus.print("ex3.1.out", result = c("mod.result", "fit", "summary.analysis"))
#----------------------------------------------------------------------------
# misty.object of type 'mplus.print'
# Example 2
# Create misty.object
object <- mplus.print("ex3.1.out", output = FALSE)
# Print misty.object
mplus.print(object)
#----------------------------------------------------------------------------
# Write Results
# # Example 3: Write Results into a text file
mplus.print("ex3.1.out", write = "Output_3-1.txt")
## End(Not run)