How can I calculate the average value of the 5 largest daily returns in the past 1 month?
I can use "rangestat(mean) daily_ret, interval(yearmonth -1 0) by(stock_code)" to calculate the average value of returns in the past 1 month. If I need to accurate to a specific days, not the entire month, for example 5 largest return day. How can I do it, please help me, thx.
0 Response to How can I calculate the average value of the 5 largest daily returns in the past 1 month?
Post a Comment