I am trying to set the base level to be 8 for an interaction of a factor variable (ib8.year) with a continuous variable (c.lntrips). Therefore, my interaction term is ib8.year#c.lntrips.
When I review the output, the factor variable ib8.year has year 8 as the base year with the coefficient equal to zero. The problem is with the interaction term. I was expecting the coefficient for _b[8b.year#c.lntrips] to be marked as the base level and the coefficient equal to zero. How do I set the base level for interaction term ib8.year#c.lntrips?
Thank you!
Code:
reg y ib8.year#c.lntrips ib8.year i.locationcode, coeflegend allbaselevels
Code:
lnvalue_adj2009 Coef. Legend
year#c.lntrips
1 .1626311 _b[1.year#c.lntrips]
2 .2049545 _b[2.year#c.lntrips]
3 .3396218 _b[3.year#c.lntrips]
4 .4795658 _b[4.year#c.lntrips]
5 .5988731 _b[5.year#c.lntrips]
6 .6452115 _b[6.year#c.lntrips]
7 .4231633 _b[7.year#c.lntrips]
8 .4718695 _b[8b.year#c.lntrips]
9 .4286197 _b[9.year#c.lntrips]
10 .3784935 _b[10.year#c.lntrips]
11 .4589129 _b[11.year#c.lntrips]
12 .5920118 _b[12.year#c.lntrips]
13 .6741337 _b[13.year#c.lntrips]
year
1 2.296849 _b[1.year]
2 2.064134 _b[2.year]
3 1.097247 _b[3.year]
4 .2270842 _b[4.year]
5 -.8567594 _b[5.year]
6 -1.335968 _b[6.year]
7 .6330328 _b[7.year]
8 0 _b[8b.year]
9 .4042452 _b[9.year]
10 .7734908 _b[10.year]
11 .2596141 _b[11.year]
12 -.6904781 _b[12.year]
13 -1.272918 _b[13.year]
...
Thank you!
Comment