Learn R Programming

Publish (version 2017.10.24)

plot.regressionTable: Plotting regression coefficients with confidence limits

Description

Plotting regression coefficients with confidence limits

Usage

# S3 method for regressionTable
plot(x, xlim, xlab, ...)

Arguments

x

regression table obtained with regressionTable

xlim

Limits for x-axis

xlab

Label for x-axis

...

passed to plotConfidence

See Also

regressionTable

Examples

Run this code
# NOT RUN {
## logistic regression
data(Diabetes)
f <- glm(bp.2s~bp.1s+age+chol+gender+location,data=Diabetes)
rtf <- regressionTable(f,factor.reference = "inline")
plot(rtf,cex=2)

## Poisson regression
data(trace)
fit <- glm(dead ~ smoking+ sex+ age+Time+offset(log(ObsTime)), family = poisson,data=trace)
rtab <- regressionTable(fit,factor.reference = "inline")
plot(rtab,xlim=c(0.85,1.15),cex=1.8,xaxis.cex=1.5)

## Cox regression
library(survival)
data(pbc)
coxfit <- coxph(Surv(time,status!=0)~age+log(bili)+log(albumin)+factor(edema)+sex,data=pbc)
pubcox <- publish(coxfit)
plot(pubcox,cex=1.5)

# }

Run the code above in your browser using DataLab