Hi! Can anyone tell me how to convert the anova/ancova summary output into a data frame? Thanks! Shane Phillips [[alternative HTML version deleted]]
On 31.08.2011 22:33, Shane Phillips wrote:> Hi! > > Can anyone tell me how to convert the anova/ancova summary output into a data frame?For the first component of such an object: as.data.frame(summary.aov_object[[1]]) Uwe Ligges> Thanks! > > Shane Phillips > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.
On Aug 31, 2011, at 4:33 PM, Shane Phillips wrote:> Hi! > > Can anyone tell me how to convert the anova/ancova summary output > into a data frame?Which parts do you want? Or how do you want it displayed? And why didn't you include a working example, anyway? Using the examples in the help(lm) and help(summary.lm) pages: > as.data.frame( anova(lm.D90) ) Df Sum Sq Mean Sq F value Pr(>F) group 2 470.45945 235.2297250 485.0514 2.209191e-16 Residuals 18 8.72925 0.4849583 NA NA > as.data.frame( coef(sld90) ) Estimate Std. Error t value Pr(>|t|) groupCtl 5.032 0.2202177 22.85012 9.547128e-15 groupTrt 4.661 0.2202177 21.16542 3.615345e-14> > Thanks! > > Shane Phillips > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.David Winsemius, MD West Hartford, CT
Perfect! Thank you! S -----Original Message----- From: Uwe Ligges [mailto:ligges at statistik.tu-dortmund.de] Sent: Wednesday, August 31, 2011 4:44 PM To: Shane Phillips Cc: r-help at r-project.org Subject: Re: [R] Converting anova/ancova summary to data frame On 31.08.2011 22:33, Shane Phillips wrote:> Hi! > > Can anyone tell me how to convert the anova/ancova summary output into a data frame?For the first component of such an object: as.data.frame(summary.aov_object[[1]]) Uwe Ligges> Thanks! > > Shane Phillips > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.