HTMLSummaryTable | R Documentation |
Creates an HTML file containing a summary table of model fit statistics extracted using the extractModelSummaries
function.
By default, the following summary statistics are included: Title, LL, Parameters, AIC, AICC, BIC, RMSEA_Estimate
,
but these are customizable using the keepCols
and dropCols
parameters.
HTMLSummaryTable(
modelList,
filename = file.path(getwd(), "Model Comparison.html"),
keepCols,
dropCols,
sortBy = NULL,
display = FALSE
)
modelList |
A list of models (as a |
filename |
The name of the HTML file to be created. Can be an absolute or relative path. If |
keepCols |
A vector of character strings indicating which columns/variables to display in the summary.
Only columns included in this list will be displayed (all others excluded). By default, |
dropCols |
A vector of character strings indicating which columns/variables to omit from the summary.
Any column not included in this list will be displayed. By default, |
sortBy |
optional. Field name (as character string) by which to sort the table. Typically an information criterion
(e.g., "AIC" or "BIC") is used to sort the table.
Defaults to |
display |
optional. This parameter specifies whether to display the table in a web
browser upon creation ( |
No value is returned by this function. It is solely used to create an HTML file containing summary statistics.
You must choose between keepCols
and dropCols
because it is not sensible to use these
together to include and exclude columns. The function will error if you include both parameters.
Michael Hallquist
extractModelSummaries
, showSummaryTable
, LatexSummaryTable
# make me!!!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.