Omit output of a factor variable in stargazer?

霸气de小男生 提交于 2020-06-14 06:08:19

问题


If I'm running a fixed effects model in r using lm and the factor command, how can I suppress the factor variable coefficients in a stargazer model?

i.e. my model is:

m1<-lm(GDP~pop_growth + factor(city))

and I want to report findings with only an intercept and coefficient on pop_growth, not coefficients on every dummy variable for cities.

EDIT: Issue was, as it turns out, with variable name encoding. omit="city" works.

来源:https://stackoverflow.com/questions/49368917/omit-output-of-a-factor-variable-in-stargazer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!