Learn R Programming

MplusAutomation (version 0.6-1)

createTable: Create tables

Description

This function generates an HTML table from a list of models generated by extractModelSummaries.

Usage

createTable(modelList,
    filename = file.path(getwd(), "Model Comparison.html"),
    sortby = "AICC", display = TRUE, latex = FALSE,
    dropCols = c("Observations"), label = NULL)

Arguments

modelList
A list of model details returned by extractModelSummaries
filename
The name of HTML table file. Defaults to model comparison.html
sortby
The name of a field on which to sort. Defaults to "AICC". "BIC" and "AIC" are options.
display
Logical, whether to load the HTML table in the browser after creating it. Defaults to TRUE.
latex
Logical, whether to return a LaTeX table or not.
dropCols
A vector of the columns to be dropped
label
Defaults to NULL

Value

  • A file or xtable object

Examples

Run this code
createTable(myModels, "C:/Documents and Settings/Michael/My Documents/Mplus Stuff/", "my comparison.html", sortby="BIC")

Run the code above in your browser using DataLab