[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: state the same for multiple observations?
...This should flag all observations within a us_id if there is more than
one state listed for that us_id:
bysort us_id (state): gen byte diffstate=state!=state[_N]
----- Original Message -----
From: "Ms. Marilyn Ibarra" <email@example.com>
Sent: Tuesday, November 14, 2006 9:41 AM
Subject: st: state the same for multiple observations?
Anyone have an idea of how I can do the following:
The data looks something like this:
I need to know if when a us_id has multiple observations is the state the
same for each observation in that us_id. If the state is different for a
given us_id I need to be able to easily identify those cases.
* For searches and help try: