Displaying 1 result from an estimated 1 matches for "id53".
Did you mean:
id3
2011 Apr 20
1
How to check if a value of a variable is in a list
...on all the friends listed in the data and I want to restrict
my data to only those friends that I also have as respondents. The data
(without characteristics) look like this:
*resp f1 f2 f3 f4 f5*
ID1 ID5 ID37 ID6 ID2 ID53
ID2 ID1 ID4 ID17 NA NA
...
Now, let's say that "ID37" never appears as a respondent, then I want to
replace that value with a NA so that it looks like this:
*resp f1 f2 f3 f4 f5*
ID1 ID5...