makilabReg | R Documentation |
Creates and exports a table of LM models with multiple DVs and IVs.
makilabReg(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 be used as the sheet name. Defaults to 'LMi' where i is the number of LMs in the file. |
The table of model summaries and (optional) an excel sheet added to the file.
data(iris) library(makilab) m1 <- lm(Petal.Length~Petal.Width+Species, data = iris) m2 <- lm(Sepal.Length~Petal.Width+Sepal.Width, data = iris) m3 <- lm(Petal.Width~Petal.Length+Sepal.Length+Species, data = iris) makilabReg(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.