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]
Re: st: How to add business days to an existing date
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: How to add business days to an existing date
Date
Tue, 8 May 2012 18:29:22 +0100
I think we have little scope for diagnosing precisely what you are
doing wrong here. You can either go to Stata tech-support, or come
back to the list, with _precise_ details of what you are doing to
define a business calendar, in what sense Stata "crashes", etc.
Nick
On Tue, May 8, 2012 at 6:24 PM, Tanja Berg <[email protected]> wrote:
> 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??
*
* 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/