Hi all,

I am trying to run below regression by intervals and years on the whole sample with rangestat & rangerun; however, whatever I do I am getting different results than for the below.

Code:
regress mvalue kstock if company[8] & year == 1954 & inrange(id_invest, id_invest[8]-3, id_invest[8] +3)
Can anyone please advise how to write the above code for the whole sample.


Thank you.