When I run the following code
webuse grunfeld, clear
bys company: asreg invest mvalue kstock, fmb newey(2)
I get the following results

If I do not run the regression by company
asreg invest mvalue kstock, fmb newey(2)
I get exactly the same results.

Does anyone know why these two different codes generate the same results?
webuse grunfeld, clear
bys company: asreg invest mvalue kstock, fmb newey(2)
I get the following results
If I do not run the regression by company
asreg invest mvalue kstock, fmb newey(2)
I get exactly the same results.
Does anyone know why these two different codes generate the same results?