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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Date variable not working


From   "Dimitriy V. Masterov" <dvmaster@gmail.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
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 <gmzulfiqar@gmail.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index