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
Jeph Herrin <[email protected]>
To
[email protected]
Subject
Re: st: Date variable not working
Date
Mon, 17 Jun 2013 15:37:10 -0400
%tq is a format, not a value. try
drop if string(date,"%tq")=="2006q4"
hth,
Jeph
On 6/17/2013 2:27 PM, Ghazal Zulfiqar 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/