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: mark spell


From   Jörg Eulenberger <j.eulenberger@web.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: mark spell
Date   Mon, 14 Feb 2011 15:14:31 +0100

Yes, this is the solution.
Sometimes you can't see the wood for the trees.
Thanks a lot,
Jörg

Am 14.02.2011 14:48, schrieb Nick Cox:
What is the problem then? Is the solution

gen includes538 = inrange(538, xb, xe)

?

Nick

On Mon, Feb 14, 2011 at 1:40 PM, Jörg Eulenberger<j.eulenberger@web.de>  wrote:

I have a problem to mark out the spells  with includes the Date
2004m11(538). The Dataset shows like this:

id    xb   xe    xt
01    2004m9    2005m12    a
02    2004m7    2004m9    c
02    2004m10    2004m10    c
02    2004m11    2005m7    b
02    2005m8    2005m12    b
05    2004m6    2004m8    c
05    2004m9    2005m12    b
07    2004m7    2004m7    c
07    2004m8    2004m10    b
07    2004m11    2004m12    c
07    2005m1    2005m8    a
07    2005m9    2005m9    c
07    2005m10    2005m12    b
08    2004m9    2005m12    b

Any help would be very much appreciated. Thanks
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index