Ready-made model comparison tables for journals

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

If you're reporting on the results of a statistical analysis for a journal or report, you'll probably be building a table comparing two or models. Such tables may include variables in the model, parameter estimates, and p-values, and model summary statistics. If you want to include such tables based on lm, glm, svyglm, gee, gam, polr, survreg or coxph models in a LaTeX document, Marek Hlavac's stargazer package may save you some time. Just give it some model objects and title labels, and you'll get a table something like this:

Stargazer table
The table style is based on that of the International Organization journal, but it's pretty similar to the requirements of most academic journals. If you need something different, you can either tweak the generated LaTeX code, or modify the R code of the stargazer function itself. You can download the stargazer package from CRAN at the link below.

CRAN: Package stargazer

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)