Hello statalist users,
can anybody explain me the difference between the two commands ?
I tried both commands but the results are different
**with unique
**with count
thank you
can anybody explain me the difference between the two commands ?
I tried both commands but the results are different
**with unique
Code:
unique index if inrange(year,2004,2012) Number of unique values of index is 282 Number of records is 1338
Code:
count if inrange(year,2004,2012) & index!=index[_n+1] 271 . count if inrange(year,2004,2012) 1338