[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Creating missing data
Suppose your identifiers run 1, 2, ... . If this isn't true,
. egen id = group(whateverisyourid)
will make it so.
Now, if I understand you correctly, you want to
. bysort id (entrytime):
replace somevar = . if _n == 1 & mod(id,5) == 0
> question is about making an adjustment to the surrogate data set. The
> surrogate data set contains about 3500 cases, some of which
> have just one
> record per case, and others have multiple records. Each record has a
> variable recording an entering time and an exit time for that record.
> Hence, single record cases have one entry time and one exit
> time; multiple
> record cases have multiple entry and multiple exit times. I
> would like to
> convert the first entry time for every fifth multiple-record
> case in this
> data set into a missing value. Are there any suggestions for
> how this might be done.
* For searches and help try: