Coverting weekly data into monthly

For questions and discussion related to reading in and working with data.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Coverting weekly data into monthly

Unread post by msrahman »

Hello,

I am converting weekly data into monthly. The output is not based on weekly averages if I check it by excel. Any suggestion?

Sincerely,
Sajjadur.

-----------------
CAL(M) 1973:02
All 2007:12
open data Data_combined_Date.xls
data(for=XLS,org=obs) / FED_RATE LOAN Div_yield_growth DGS10 MKT_RET
print / FED_RATE LOAN Div_yield_growth DGS10 MKT_RET
--------------------------------------
Output based on RATS:
1973:03 7.06737327189 0.853399982560 -11.75734003403 6.71012903226 -0.091483870968
1973:04 7.14852380952 0.466791091377 -16.14767370296 6.67148333333 -0.161066666667

Output based on excel (weekly averages)
1973:03 7.055 0.906995644 -7.469532961 6.7095 -0.0445
1973:04 7.101428571 0.452347527 -24.04291589 6.669375 -0.2245
Attachments
Monthly.txt
(36.92 KiB) Downloaded 808 times
Data_combined_Date.xls
(269.5 KiB) Downloaded 835 times
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Coverting weekly data into monthly

Unread post by TomDoan »

It's doing what is described in the manual:

https://estima.com/docs/RATS%2010%20Int ... f#page=113

Weeks that span the boundary between months are split (prorated by days) between the two months.
Post Reply