I estimate the following regression:
Code:
reg Y ib2001.YEAR i.AGE,
I then like set the year-dummies to zero and predict the value of the outcome for each year based on AGE. My idea was to use something like:
Code:
margins, by(YEAR) at(i2000.YEAR=0 i2002.YEAR=0 i2003.YEAR=0 i2004.YEAR=0 i2005.YEAR=0)
HTML Code:
at values for factor Event do not sum to 1
Thanks a lot!
0 Response to factor variables and margins
Post a Comment