How to calculate daily return by Index
Posted: Tue Nov 05, 2013 2:28 am
I am a new user of EViews, and I am facing a problem about calculating daily return by the daily close of Index.
I have created a work file with structure of 5 days a week, imported the daily close of Hang Seng Index from 1998 to 2012. When calculate the daily return by:
series drl = log(y/y(-1))
the problem is about (y-1), for example on 2 Feb 98 the index closing 10,578.60, but the output was "NA", because 1 Feb 98 was holiday, how can I amend it so that EViews will take the last trade day close (i.e. 27 Jan 98) as the base of return calculation?
Please kindly help!
I have created a work file with structure of 5 days a week, imported the daily close of Hang Seng Index from 1998 to 2012. When calculate the daily return by:
series drl = log(y/y(-1))
the problem is about (y-1), for example on 2 Feb 98 the index closing 10,578.60, but the output was "NA", because 1 Feb 98 was holiday, how can I amend it so that EViews will take the last trade day close (i.e. 27 Jan 98) as the base of return calculation?
Please kindly help!