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.
Can anyone please advise how to write the above code for the whole sample.
Thank you.
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:
webuse grunfeld bysort year (invest):gen id_invest = _n regress mvalue kstock if company[8] & year == 1954 & inrange(id_invest, id_invest[8]-3, id_invest[8] +3)
Thank you.