Download Workflow of statistical data analysis - 2011
Transcript
c Oliver Kirchkamp Workflow [ 18th July 2013, 10:26 ] — 87 (x <- rbind(c(1,2,3),c(4,5,6))) [1,] [2,] [,1] [,2] [,3] 1 2 3 4 5 6 <<results=’asis’>> library(xtable) print(xtable(x),floating=FALSE) 1 2 1 1.00 4.00 2 2.00 5.00 3 3.00 6.00 @ 7.7.2 Estimation results Estimation results in tabular form from mtable are typeset by toLatex: library(Ecdat) data(Caschool) est1 <- lm(testscr ~ str,data=Caschool) est2 <- lm(testscr ~ str + elpct,data=Caschool) est3 <- lm(testscr ~ str + elpct +avginc,data=Caschool) toLatex(mtable(est1,est2,est3))