makilabHLM | R Documentation |
Creates and exports a table of heirarchical LM models.
makilabHLM(m1, ..., excel_export = FALSE, filename = NULL, sheetname = NULL)
m1 |
An object output from lm() or a list of such objects. |
... |
More models from lm(). |
excel_export |
A bool for whether not you want an excel export. |
filename |
String of the filename to export to. Defaults to 'Data_YYYY-MM-DD.xlsx' where YYYY-MM-DD is today's date. |
sheetname |
String to use as the sheet name. Defaults to HLMi, where i is the number of HLMs in the file. |
The table of model summaries and (optional) an excel sheet added to the file.
data(iris) library(makilab) m1 <- lm(Sepal.Length~Petal.Length, data = iris) m2 <- lm(Sepal.Length~Petal.Length+Petal.Width, data = iris) m3 <- lm(Sepal.Length~Petal.Length+Petal.Width+Species, data = iris) makilabHLM(m1, m2, m3, excel_export = TRUE, filename = "data.xlsx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.