Converting irregular to regular frequency
Posted: Wed Feb 29, 2012 9:57 am
Hi, hopefully this is the correct subforum for my question.
I have irregular high-frequency data on stock prices (i.e. time of each observation is the second each trade has happened, relevant variables DATE, TIME, PRICE). I want to calculate returns e.g. for each half-hour period and use models with half-hourly observations, but do not know how to do this without converting the data to regular frequency. Is it possible to convert the data to some regular frequency, so that e.g. the price variable at 10:00, 10:30, 11:00... takes the value of the last trade before/closest to that time point from the irregular data?
Thank you very much in advance. I am using EViews 7.
I have irregular high-frequency data on stock prices (i.e. time of each observation is the second each trade has happened, relevant variables DATE, TIME, PRICE). I want to calculate returns e.g. for each half-hour period and use models with half-hourly observations, but do not know how to do this without converting the data to regular frequency. Is it possible to convert the data to some regular frequency, so that e.g. the price variable at 10:00, 10:30, 11:00... takes the value of the last trade before/closest to that time point from the irregular data?
Thank you very much in advance. I am using EViews 7.