R: including model specifications in xtable(anova(...))

Posted by HamiltonUlmer on Stack Overflow See other posts from Stack Overflow or by HamiltonUlmer
Published on 2010-02-19T05:01:14Z Indexed on 2010/04/21 20:33 UTC
Read the original article Hit count: 261

Filed under:
|

Hello R comrades:

I have a bunch of loglinear models, which, for our purposes will just be glm() objects called mx, my, mz. I want to get a nicely-formatted xtable of the analysis of deviance, so naturally I would want to perform xtable(anova(mx, my, mz, test = "Chisq")).

The vanilla output of xtable, however, doesn't include the model specifications. I'd like to include those for all the ANOVA tests I'm running, so if there is not a param I'm missing that does this I'll probably just have to hack up my own solution. But looking over the help page, there doesn't seem to be an easy way to include the model specifications.

Any thoughts? Alternatives?

If it helps this was done in 2.9.1 with xtable 1.5-5.

© Stack Overflow or respective owner

Related posts about r

    Related posts about xtable