Calculating Variance Using a Calendar Window
Posted: Mon Dec 07, 2015 7:36 am
I am making my transition from Stata to RATS. I have a daily-frequency dataset and need to obtain the standard deviation for a series in every calendar month. In Stata this would do what I want:
How do I do that in RATS?by year month, sort : egen float myseries = sd(myseries)