大概被这个问题折磨的最多的人就是搞econometrics的人吧...熟悉stata的人应该都很喜欢outreg这个功能,而R里面就麻烦得多。以前一直写一个outreg()的函数来搞定这件事儿,现在看来有更方便的方法了——stargazer这个包。什么AER、QJE之类的完全不在话下。
这个包支持这些对象:
lm, glm, svyglm, plm, betareg, gee, gam, polr, survreg , coxph, tobit (AER), ivreg (AER), zeroinfl (pscl), hurdle (pscl), multinom (nnet), as well as their implementations in Zelig
还支持这些期刊的表格格式:
American Economic Review, in the Quarterly Journal of Economics, or in Administrative Science Quarterly. Political scientists can avail themselves of templates based on the American Political Science Review, the American Journal of Political Science, and on International Organization. For sociologists and demographers, the American Sociological Review, the American Sociological Reviews and Demography are available.
该收收了吧,哈哈。
4 replies on “R的outreg:输出回归结果表格via stargazer”
运行后生成的是LaTex代码?不能直接在R里看到效果?
R里面怎么看....
总要最终转换成PDF吧?
果然强大,比我整理那个好多了:http://www.anaharb.com/2014/0216/R-outcome-export
回头把这个包加上。