Dear all,
In the example below, I am wondering how can I set the base in a triple interaction.
I want the base to be set for g = 1.
So 5#foreign (g#foreign#c.mpg) will show and 1#foreign(g#foreign) will be omitted.
(Please can ignore the fact that i did not include foreign dummy---it will be absorbed in my actually regression since I will have multiple years of data and I will include make FE)
Foreign dummy does not vary within make, but g will).
Thanks in advance.
sysuse auto, clear
egen g = group(headroom)
keep if g<6
fvset base 1 g
. reg price i.foreign#c.mpg i.g#i.foreign#c.mpg i.g#i.foreign, baselevels
Source | SS df MS Number of obs = 59
-------------+---------------------------------- F(18, 40) = 2.33
Model | 294846920 18 16380384.5 Prob > F = 0.0130
Residual | 281011411 40 7025285.26 R-squared = 0.5120
-------------+---------------------------------- Adj R-squared = 0.2924
Total | 575858331 58 9928591.91 Root MSE = 2650.5
---------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
----------------+----------------------------------------------------------------
foreign#c.mpg |
Domestic | 16.5 354.1914 0.05 0.963 -699.3474 732.3474
Foreign | -562.1875 234.2756 -2.40 0.021 -1035.676 -88.69892
|
g#foreign#c.mpg |
2#Domestic | -114.286 427.3338 -0.27 0.791 -977.9597 749.3877
2#Foreign | 484.7834 320.9415 1.51 0.139 -163.8635 1133.43
3#Domestic | -445.2269 388.8557 -1.14 0.259 -1231.134 340.6798
3#Foreign | 283.0711 289.9935 0.98 0.335 -303.0276 869.1697
4#Domestic | -50.7234 447.4244 -0.11 0.910 -955.0019 853.5551
4#Foreign | 412.4222 277.2606 1.49 0.145 -147.9422 972.7867
5#Domestic | -1028.184 436.6764 -2.35 0.024 -1910.74 -145.6283
5#Foreign | 0 (omitted)
|
g#foreign |
1#Domestic | 0 (base)
1#Foreign | 14285.65 10519.57 1.36 0.182 -6975.194 35546.49
2#Domestic | 1939.09 10286.25 0.19 0.851 -18850.19 22728.37
2#Foreign | 2858.174 10462.87 0.27 0.786 -18288.07 24004.42
3#Domestic | 11877.21 9565.826 1.24 0.222 -7456.045 31210.46
3#Foreign | 8372.069 9562.23 0.88 0.387 -10953.92 27698.06
4#Domestic | 2032.944 10271.33 0.20 0.844 -18726.19 22792.08
4#Foreign | 4782.545 9612.566 0.50 0.622 -14645.18 24210.27
5#Domestic | 19610.01 9677.573 2.03 0.049 50.91047 39169.12
5#Foreign | 15986.96 10231.27 1.56 0.126 -4691.205 36665.12
|
_cons | 4873.667 8637.236 0.56 0.576 -12582.84 22330.17
---------------------------------------------------------------------------------
Comment