Ready-made model comparison tables for journals

October 15, 2012
By

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

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 his blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: ,

Comments are closed.