Hi,
I’m looking for help with a STATA margins analysis. My data is a voting and elections database that has one row observation for each election year-state-office code combination, e.g. 2012, California, Presidential Office. Presidential, senatorial, and gubernatorial data goes back to 1980. District level House of Representatives data goes back to 2006.
My regression code is the following, and produces output without any problems:
reg deflator_temp win_margin no_incumbent unopposed senate governor presidential non_senate_year non_gubernatorial_year non_presidential_year i.year##i.state_code, r
However, running the following margins command produces results that are "not estimable:"
margins year#state_code, atmeans
When I run the same regression with decade fixed effects instead of year fixed effects I am able to produce margins predicted values. Any thoughts why this is? Any help would be greatly appreciated.
Anthony
I’m looking for help with a STATA margins analysis. My data is a voting and elections database that has one row observation for each election year-state-office code combination, e.g. 2012, California, Presidential Office. Presidential, senatorial, and gubernatorial data goes back to 1980. District level House of Representatives data goes back to 2006.
My regression code is the following, and produces output without any problems:
reg deflator_temp win_margin no_incumbent unopposed senate governor presidential non_senate_year non_gubernatorial_year non_presidential_year i.year##i.state_code, r
However, running the following margins command produces results that are "not estimable:"
margins year#state_code, atmeans
When I run the same regression with decade fixed effects instead of year fixed effects I am able to produce margins predicted values. Any thoughts why this is? Any help would be greatly appreciated.
Anthony
Comment