Quantcast
Channel: Active questions tagged lm - Stack Overflow
Viewing all articles
Browse latest Browse all 124

Omit output of a factor variable in stargazer?

$
0
0

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.


Viewing all articles
Browse latest Browse all 124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>