Hi,
I have panel data of stocks that do not necessarily trade every day. When the stock does not trade, the is no record for that day (as opposed to missing data). I would like to identify and remove all stocks that do no trade on a regular basis. I have gotten a official trading calendar time series data.
I would like to use the official trading calendar time series data to create missing information in my stock data, for each stock.
Here is a sample of the stock data:
this my stock data:
Can someone help me with that? Thanks!
I have panel data of stocks that do not necessarily trade every day. When the stock does not trade, the is no record for that day (as opposed to missing data). I would like to identify and remove all stocks that do no trade on a regular basis. I have gotten a official trading calendar time series data.
I would like to use the official trading calendar time series data to create missing information in my stock data, for each stock.
Here is a sample of the stock data:
Code:
trading_days 01/02/2016 01/03/2016 01/04/2014 01/04/2015 01/04/2016 01/05/2014 01/05/2015 01/06/2015 01/06/2016 01/07/2014 01/07/2015 01/07/2016 01/08/2014 01/08/2016 01/09/2014 01/09/2015 01/09/2016 01/10/2014 01/10/2015 01/11/2016 01/12/2014 01/12/2015 01/12/2016 02/01/2014 02/01/2015 02/02/2015 02/02/2016 02/03/2015 02/03/2016
Code:
stockidentifier date date_ymd hightradefortheday lowtradefortheday lasttradefortheday 4DS.ASX 24/02/2016 20160224 .034 .03 .03 4DS.ASX 25/02/2016 20160225 .03 .029 .029 4DS.ASX 26/02/2016 20160226 .03 .029 .029 4DS.ASX 29/02/2016 20160229 .029 .029 .029 4DS.ASX 01/03/2016 20160301 .03 .029 .03 4DS.ASX 02/03/2016 20160302 .033 .032 .032 88EO.ASX 02/07/2015 20150702 .005 .004 .005 88EO.ASX 03/07/2015 20150703 .005 .005 .005 88EO.ASX 06/07/2015 20150706 .006 .005 .006 88EO.ASX 07/07/2015 20150707 .005 .005 .005 88EO.ASX 08/07/2015 20150708 .004 .004 .004 88EO.ASX 13/07/2015 20150713 .005 .004 .005 88EO.ASX 15/07/2015 20150715 .004 .004 .004 88EO.ASX 17/07/2015 20150717 .005 .004 .005 88EO.ASX 22/07/2015 20150722 .004 .004 .004
Can someone help me with that? Thanks!
Comment