davidyeager
2011-Oct-08 04:15 UTC
[R] Generalized Additive Models: How to create publication-ready regression tables
Hi - I have a series of 9 GAM regressions with about 5 parametric effects and three non-parametric effects in each. What is a good library or command for turning GAM outputs into publication-ready regression tables? I tried apsrtable and the mtable command in memisc but neither seemed to work with the gam output. I'd be okay with two separate tables - one for the parametric effects and one for the non-parametric effects. Best, David -- View this message in context: http://r.789695.n4.nabble.com/Generalized-Additive-Models-How-to-create-publication-ready-regression-tables-tp3884432p3884432.html Sent from the R help mailing list archive at Nabble.com.
Emilio López
2011-Oct-08 09:09 UTC
[R] Generalized Additive Models: How to create publication-ready regression tables
Hi, I usually use xtable package to generate LaTeX tables. It also works for HTML format. A reproducible example: ------------------------------------------------------------------------------------------------------------------------- library(gam) library(xtable) model <- gam(Kyphosis ~ s(Age,4) + Number, family = binomial, data=kyphosis, trace=TRUE) model.s <- summary(model) xtable(model.s$anova, caption="ANOVA table for GAM", digits=4) ------------------------------------------------------------------------------------------------------------------------- Sometimes you will have to coerce to matrix the data object. It is specially useful combined with Sweave. Best, Emilio L. Cano Rey Juan Carlos University (Madrid) 2011/10/8 davidyeager <dyeager@gmail.com>> Hi - > > I have a series of 9 GAM regressions with about 5 parametric effects and > three non-parametric effects in each. > > What is a good library or command for turning GAM outputs into > publication-ready regression tables? > > I tried apsrtable and the mtable command in memisc but neither seemed to > work with the gam output. > > I'd be okay with two separate tables - one for the parametric effects and > one for the non-parametric effects. > > Best, > > David > > -- > View this message in context: > http://r.789695.n4.nabble.com/Generalized-Additive-Models-How-to-create-publication-ready-regression-tables-tp3884432p3884432.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]