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]

Re: st: Date variable not working


From   "Dimitriy V. Masterov" <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: Date variable not working
Date   Mon, 17 Jun 2013 11:33:32 -0700

I think you want something like -if date==tq(2006q4)-.

DVM

On Mon, Jun 17, 2013 at 11:27 AM, Ghazal Zulfiqar <[email protected]> wrote:
> Hi Statalisters,
> Please help! In my panel dataset I am using  date variables in %tq format from 2006q4 to 2012q4. I want to drop 2006q4 from my dataset now and I am typing: drop if date==date("2006q4", "YQ") and it just wont work!
>
> Appreciate any help you can provide.
>
> Thanks,
> Ghazal Zulfiqar
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index