How do I do that in RATS?by year month, sort : egen float myseries = sd(myseries)
Calculating Variance Using a Calendar Window
Calculating Variance Using a Calendar Window
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: