regressionTable: Regression analysis table.

Description Usage Arguments Value Examples

View source: R/regressionTable.R

Description

Produces a table of the results of a regression analysis.

Usage

1
regressionTable(model.fit)

Arguments

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.

Value

A regression table.

Examples

 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)

psytabs documentation built on May 29, 2017, 10:52 p.m.