Dear All, Suppose I run the following two regressions (ssc install reghdfe/ftools):
I got
and
In addition, the FE saved from the second regression:
My question is: What is the relationship between (the four company dummies) coefficients/constant from the first regression and the FE/constant from the second regression. Thanks for your comments.
Code:
webuse grunfeld, clear drop if company > 5 reg invest mvalue kstock i.company reghdfe invest mvalue kstock, a(FE=company)
Code:
. reg invest mvalue kstock i.company
Source | SS df MS Number of obs = 100
-------------+---------------------------------- F(6, 93) = 208.88
Model | 6481660.49 6 1080276.75 Prob > F = 0.0000
Residual | 480962.167 93 5171.6362 R-squared = 0.9309
-------------+---------------------------------- Adj R-squared = 0.9265
Total | 6962622.66 99 70329.5218 Root MSE = 71.914
------------------------------------------------------------------------------
invest | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
mvalue | .1149211 .0168364 6.83 0.000 .0814874 .1483548
kstock | .3211845 .024291 13.22 0.000 .2729475 .3694215
|
company |
2 | 187.4654 43.82714 4.28 0.000 100.4334 274.4974
3 | -151.0369 44.6898 -3.38 0.001 -239.7819 -62.29178
4 | 65.81458 62.12928 1.06 0.292 -57.56187 189.191
5 | -22.84211 71.43762 -0.32 0.750 -164.7031 119.0188
|
_cons | -98.29755 70.59862 -1.39 0.167 -238.4924 41.89731
------------------------------------------------------------------------------
Code:
. reghdfe invest mvalue kstock, a(FE=company)
(MWFE estimator converged in 1 iterations)
HDFE Linear regression Number of obs = 100
Absorbing 1 HDFE group F( 2, 93) = 166.54
Prob > F = 0.0000
R-squared = 0.9309
Adj R-squared = 0.9265
Within R-sq. = 0.7817
Root MSE = 71.9141
------------------------------------------------------------------------------
invest | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
mvalue | .1149211 .0168364 6.83 0.000 .0814874 .1483548
kstock | .3211845 .024291 13.22 0.000 .2729475 .3694215
_cons | -82.41736 29.66 -2.78 0.007 -141.3162 -23.51847
------------------------------------------------------------------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte company int year float(invest mvalue kstock) byte time double FE 1 1935 317.6 3078.5 2.8 1 -15.880197047496395 1 1936 391.8 4661.7 52.6 2 -15.880197047496395 1 1937 410.6 5387.1 156.9 3 -15.880197047496395 1 1938 257.7 2792.2 209.2 4 -15.880197047496395 1 1939 330.8 4313.2 203.4 5 -15.880197047496395 1 1940 461.2 4643.9 207.2 6 -15.880197047496395 1 1941 512 4551.2 255.2 7 -15.880197047496395 1 1942 448 3244.1 303.7 8 -15.880197047496395 1 1943 499.6 4053.7 264.1 9 -15.880197047496395 1 1944 547.5 4379.3 201.6 10 -15.880197047496395 1 1945 561.2 4840.9 265 11 -15.880197047496395 1 1946 688.1 4900.9 402.2 12 -15.880197047496395 1 1947 568.9 3526.5 761.5 13 -15.880197047496395 1 1948 529.2 3254.7 922.4 14 -15.880197047496395 1 1949 555.1 3700.2 1020.1 15 -15.880197047496395 1 1950 642.9 3755.6 1099 16 -15.880197047496395 1 1951 755.9 4833 1207.7 17 -15.880197047496395 1 1952 891.2 4924.9 1430.5 18 -15.880197047496395 1 1953 1304.4 6241.7 1777.3 19 -15.880197047496395 1 1954 1486.7 5593.6 2226.3 20 -15.880197047496395 2 1935 209.9 1362.4 53.8 1 171.58517985868602 2 1936 355.3 1807.1 50.5 2 171.58517985868602 2 1937 469.9 2676.3 118.1 3 171.58517985868602 2 1938 262.3 1801.9 260.2 4 171.58517985868602 2 1939 230.4 1957.3 312.7 5 171.58517985868602 2 1940 361.6 2202.9 254.2 6 171.58517985868602 2 1941 472.8 2380.5 261.4 7 171.58517985868602 2 1942 445.6 2168.6 298.7 8 171.58517985868602 2 1943 361.6 1985.1 301.8 9 171.58517985868602 2 1944 288.2 1813.9 279.1 10 171.58517985868602 2 1945 258.7 1850.2 213.8 11 171.58517985868602 2 1946 420.3 2067.7 132.6 12 171.58517985868602 2 1947 420.5 1796.7 264.8 13 171.58517985868602 2 1948 494.5 1625.8 306.9 14 171.58517985868602 2 1949 405.1 1667 351.1 15 171.58517985868602 2 1950 418.8 1677.4 357.8 16 171.58517985868602 2 1951 588.2 2289.5 342.1 17 171.58517985868602 2 1952 645.5 2159.4 444.2 18 171.58517985868602 2 1953 641 2031.3 623.6 19 171.58517985868602 2 1954 459.3 2115.5 669.7 20 171.58517985868602 3 1935 33.1 1170.6 97.8 1 -166.91705738709987 3 1936 45 2015.8 104.4 2 -166.91705738709987 3 1937 77.2 2803.3 118 3 -166.91705738709987 3 1938 44.6 2039.7 156.2 4 -166.91705738709987 3 1939 48.1 2256.2 172.6 5 -166.91705738709987 3 1940 74.4 2132.2 186.6 6 -166.91705738709987 3 1941 113 1834.1 220.9 7 -166.91705738709987 3 1942 91.9 1588 287.8 8 -166.91705738709987 3 1943 61.3 1749.4 319.9 9 -166.91705738709987 3 1944 56.8 1687.2 321.3 10 -166.91705738709987 3 1945 93.6 2007.7 319.6 11 -166.91705738709987 3 1946 159.9 2208.3 346 12 -166.91705738709987 3 1947 147.2 1656.7 456.4 13 -166.91705738709987 3 1948 146.3 1604.4 543.4 14 -166.91705738709987 3 1949 98.3 1431.8 618.3 15 -166.91705738709987 3 1950 93.5 1610.5 647.4 16 -166.91705738709987 3 1951 135.2 1819.4 671.3 17 -166.91705738709987 3 1952 157.3 2079.7 726.1 18 -166.91705738709987 3 1953 179.5 2371.6 800.3 19 -166.91705738709987 3 1954 189.6 2759.9 888.9 20 -166.91705738709987 4 1935 40.29 417.5 10.5 1 49.93437939170669 4 1936 72.76 837.8 10.2 2 49.93437939170669 4 1937 66.26 883.9 34.7 3 49.93437939170669 4 1938 51.6 437.9 51.8 4 49.93437939170669 4 1939 52.41 679.7 64.3 5 49.93437939170669 4 1940 69.41 727.8 67.1 6 49.93437939170669 4 1941 68.35 643.6 75.2 7 49.93437939170669 4 1942 46.8 410.9 71.4 8 49.93437939170669 4 1943 47.4 588.4 67.1 9 49.93437939170669 4 1944 59.57 698.4 60.5 10 49.93437939170669 4 1945 88.78 846.4 54.6 11 49.93437939170669 4 1946 74.12 893.8 84.8 12 49.93437939170669 4 1947 62.68 579 96.8 13 49.93437939170669 4 1948 89.36 694.6 110.2 14 49.93437939170669 4 1949 78.98 590.3 147.4 15 49.93437939170669 4 1950 100.66 693.5 163.2 16 49.93437939170669 4 1951 160.62 809 203.5 17 49.93437939170669 4 1952 145 727 290.6 18 49.93437939170669 4 1953 174.93 1001.5 346.1 19 49.93437939170669 4 1954 172.49 703.2 414.9 20 49.93437939170669 5 1935 39.68 157.7 183.2 1 -38.72230481579653 5 1936 50.73 167.9 204 2 -38.72230481579653 5 1937 74.24 192.9 236 3 -38.72230481579653 5 1938 53.51 156.7 291.7 4 -38.72230481579653 5 1939 42.65 191.4 323.1 5 -38.72230481579653 5 1940 46.48 185.5 344 6 -38.72230481579653 5 1941 61.4 199.6 367.7 7 -38.72230481579653 5 1942 39.67 189.5 407.2 8 -38.72230481579653 5 1943 62.24 151.2 426.6 9 -38.72230481579653 5 1944 52.32 187.7 470 10 -38.72230481579653 5 1945 63.21 214.7 499.2 11 -38.72230481579653 5 1946 59.37 232.9 534.6 12 -38.72230481579653 5 1947 58.02 249 566.6 13 -38.72230481579653 5 1948 70.34 224.5 595.3 14 -38.72230481579653 5 1949 67.42 237.3 631.4 15 -38.72230481579653 5 1950 55.74 240.1 662.3 16 -38.72230481579653 5 1951 80.3 327.3 683.9 17 -38.72230481579653 5 1952 85.4 359.4 729.3 18 -38.72230481579653 5 1953 91.9 398.4 774.3 19 -38.72230481579653 5 1954 81.43 365.7 804.9 20 -38.72230481579653 end format %ty year

Comment