Description Usage Arguments Value Examples
View source: R/regressionTable.R
Produces a table of the results of a regression analysis.
1 | regressionTable(model.fit)
|
model.fit |
results of a regression analysis as returned by the lm or glm functions. Additionally the robust regression functions of the robust package are supported. |
A regression table.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(iris)
fit <- lm(Sepal.Length ~ Petal.Width + Species, data = iris)
(tab <- regressionTable(fit))
#Must have the robust package instaled
#fit.rob <- lmrob(Sepal.Length ~ Petal.Width + Species, data = iris)
#regressionTable(fit.rob)
#saveTable(tab, "regressionTable.rtf")
#Logisitc Regression currently works not correctly.
# data(anorexia, package="MASS")
# anorexia.logistic <- anorexia[anorexia$Treat != "FT",]
# fit <- glm(Treat ~ Postwt, family = binomial(), data = anorexia.logistic)
#
# regressionTable(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.