Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72862

regress to rangestat or rangerun

$
0
0
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:
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)
Can anyone please advise how to write the above code for the whole sample.


Thank you.

Viewing all articles
Browse latest Browse all 72862

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>