Page 1 of 1

Calculating Variance Using a Calendar Window

Posted: Mon Dec 07, 2015 7:36 am
by alexecon
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:
by year month, sort : egen float myseries = sd(myseries)
How do I do that in RATS?