**R-statistics blog**, and kindly contributed to R-bloggers)

**Update (07.07.10)**: The function in this post has a more mature version in the “arm” package. See at the end of this post for more details.

/> * * * *

Imagine you want to give a presentation or report of your latest findings running some sort of regression analysis. How would you do it?

This was exactly the question Wincent Rong-gui HUANG has recently asked href="http://r.789695.n4.nabble.com/Visualization-of-coefficients-tt2276010.html#none">on the R mailing list.

One person, Bernd Weiss, responded by linking to the chapter “ href="http://tables2graphs.com/doku.php?id=04_regression_coefficients">Plotting Regression Coefficients” on an interesting online book (I have never heard of before) called “ href="http://tables2graphs.com/doku.php">Using Graphs Instead of Tables” (I should add this link to the href="http://www.r-statistics.com/2009/10/free-statistics-e-books-for-download/">free statistics e-books list…)

Letter in the conversation, href="http://statmath.wu.ac.at/~zeileis/">Achim Zeileis, has surprised us (well, me) saying the following

I’ve thought about adding a plot() method for the coeftest() function in the href="http://cran.r-project.org/web/packages/lmtest/index.html">“lmtest” package. Essentially, it relies on a coef() and a vcov() method being available –

and that a central limit theorem holds. For releasing it as a general function in the package the code is still too raw, but maybe it’s useful for someone on the list. Hence,I’ve included it below.

(I allowed myself to add some **bolds** in the text)

So for the convenience of all of us, I uploaded Achim’s code in a file for easy access. Here is an example of how to use it:

source("http://www.r-statistics.com/wp-content/uploads/2010/07/coefplot.r.txt") data("Mroz", package = "car") fm <- glm(lfp ~ ., data = Mroz, family = binomial) coefplot(fm, parm = -1)