Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: How to add business days to an existing date


From   Tanja Berg <[email protected]>
To   [email protected]
Subject   st: How to add business days to an existing date
Date   Tue, 8 May 2012 19:24:39 +0200

Hi together,

I am not that experienced with Stata, so I need a little help.
I have a data set with time series observations in the following format

ID	Date		Price
1	01.01.2005	X
1	02.01.2005	X
1	03.01.2005	X
.......
2	01.01.2005	X
2	02.01.2005	X
2	03.01.2005	X
.......

Now I need to calculate a "Value Date", which means that I need a new Date which is the stated Date plus three Business Days. So weekends and bank holidays like January 1st, December 25th etc. 
should be omitted.
How can I solve this problem?
I already tried to solve this with a business calendar, but Stata always crashed if I load my calender. By the way, I am not 100% sure if I am doing everything in the correct way with the business calender.
Is there a way without using the business calendar??

Thanks!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index