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: Re: Re: st: binary indicator for differing subsets of variables [SEC=UNCLASSIFIED]


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: Re: Re: st: binary indicator for differing subsets of variables [SEC=UNCLASSIFIED]
Date   Fri, 9 Sep 2011 08:26:50 +0100

Quite right. I just realised this as I woke up! Sorry.

You'd need to convert to numeric dates.

Nick

On Fri, Sep 9, 2011 at 3:09 AM, Fry, Jane <[email protected]> wrote:
> Hmmm... but if my date variables are strings (MMYY)
> would the inrange function take the range to be alphanumeric and
> evaluated from left to right?
>
> e.g. inrange("`v'", date1, date2) for date1="0108" and date2="0708"
> would declare "0707" to be in the range?
>
> This would be a problem, but the blunt solution of generating the
> intervening dates would avoid it.
>
>
*
*   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