[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Re: dummy variable with overlapping if conditions
Austin Nichols replied to Kit Baum:
> Or, allowing for missing values:
> gen and = d1&d2 if !mi(d1, d2)
> gen or = d1|d2 if !mi(d1, d2)
> gen xor = cond(d1+d2==1, 1, 0) if !mi(d1, d2)
> It's always a good idea to add the "if not missing" clause.
Thanks for this as well.
CLIVE NICHOLAS |t: 0(044)7903 397793
Politics |e: email@example.com
Newcastle University |http://www.ncl.ac.uk/geps
Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather
* For searches and help try: