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: bcal


From   betaidi2 <[email protected]>
To   <[email protected]>
Subject   st: bcal
Date   Fri, 19 Oct 2012 10:16:58 -0600

Dear Statalist,

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 .:)

Thanks 
David Hunter


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index