Page 1 of 1
standard deviation of group
Posted: Fri Mar 31, 2023 6:01 am
by Sima77
I constructed a group (g) of multiple time series that include the residuals of the model using daily data for a 10 years period of time. The second step, I want to compute the monthly standard deviation of each time series of this group (g). I used @stdevsby (g, @month), eviews computed 12 monthly standard deviations but they are the same for the 10 years. I want 12 standard deviations for each year, but this code repeated the same 12 standard deviations througout the 10 years. I would really appreciate if I received help on this.
Re: standard deviation of group
Posted: Fri Mar 31, 2023 8:52 am
by EViews Gareth
Instead of @month use @datefloor(@date, "mon")
Re: standard deviation of group
Posted: Fri Mar 31, 2023 10:48 am
by Sima77
Thank you so much, It works now.
Re: standard deviation of group
Posted: Tue Apr 04, 2023 9:02 am
by Sima77
I tried to figure out what are the 12 standard deviation values I got when I used @month, but I couldn't. I would really appreciate it if you let me know what are these 12 standard deviation values? are they the monthly averages or something else?
Re: standard deviation of group
Posted: Tue Apr 04, 2023 9:31 am
by EViews Gareth
@month is just the month of the year.
Re: standard deviation of group
Posted: Tue Apr 04, 2023 11:23 am
by Sima77
Sorry I did not get it. I did not understand why when I used @month I got the same monthly standard deviation values for the 10 years?
Re: standard deviation of group
Posted: Tue Apr 04, 2023 1:25 pm
by EViews Gareth
Because January is January. When you use @month, it just treats every date in January as the same dataset - it doesn't split by year.
Re: standard deviation of group
Posted: Tue Apr 04, 2023 3:30 pm
by Sima77
Now I got it. Makes sense. Thank you so much.