Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

RE: st: bcal


From   betaidi2 <betaidi2@msn.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: bcal
Date   Fri, 19 Oct 2012 12:13:07 -0600

Thanks

That is much simpler.
I would still like to know if can use a if not type logical in Stata's
business calendars.
I have other situations that the feature is needed.

Thanks again

David Hunter

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of David Kantor
Sent: Friday, October 19, 2012 10:32 AM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: bcal

At 12:16 PM 10/19/2012, David Hunter wrote:
>I am trying to code a bcal  that excludes Election day.
>Election day is the 1st Tue of the Nov ,provided it is not on Nov 1, 
>then it is 2nd tue of the Nov That is it's range is Nov 2-Nov 8
>
>The following code will exclude the 1st tue of Nov:
>
>from 01jan1885 to 31dec1968: omit dowinmonth +1 tue of nov
>
>I need it to apply only if it's not Nov 1 Can one use an if-not (or 
>if-then  etc.) in the bcal coding?
>
>Any thoughts on solution?
>I did not want to code each one individually because one would lose 
>forward nature( i.e. from date to .:)

I am not familiar with bcal, but I can tell you that there is another,
simpler way to identify (U.S) Election day.
It is the day after the first Monday in November..
HTH
--David

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

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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index