# Ready-made model comparison tables for journals

**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:

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

**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.