report output all tables in StepReg object to a report with format of html, docx, pptx, rtf, and xlsx.

report(x, report_name, format = c("html", "docx", "rtf", "pptx"))

Arguments

x

StepReg object

report_name

report name

format

the format of report, choose one or more from 'html', 'docx', 'rtf', 'pptx'. default is 'html'

Examples

if (FALSE) { # \dontrun{
data(mtcars)
mtcars$yes <- mtcars$wt
formula <- mpg ~ . + 0
x <- stepwise(formula = formula,
              data = mtcars,
              type = "linear",
              strategy = c("bidirection","subset"),
              metric = c("AIC", "BIC"))
report(x,report_name = "report", format = c("html","docx"))
} # }