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   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: mark spell
Date   Mon, 14 Feb 2011 13:48:21 +0000

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 <[email protected]> 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/


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