Using stargazer with Zelig

China☆狼群 提交于 2019-12-01 08:46:24

As of Zelig 5.0-13 and stargazer 5.2, stargazer doesn't seem to be able to handle Zelig's internal model. As a workaround, you can simply cast it to a "normal" lm to make it work:

stargazer(lm(z$zelig.out$z.out[[1]]), type='text')

Result:

===============================================
                        Dependent variable:    
                    ---------------------------
                             Fertility         
-----------------------------------------------
Education                    -0.862***         
                              (0.145)          

Constant                     79.610***         
                              (2.104)          

-----------------------------------------------
Observations                    47             
R2                             0.441           
Adjusted R2                    0.428           
Residual Std. Error       9.446 (df = 45)      
F Statistic           35.446*** (df = 1; 45)   
===============================================
Note:               *p<0.1; **p<0.05; ***p<0.01 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!