------------------------------------------------------------------------
--------
"No observations" is here non-Stata language
for "all missing", meaning all empty strings.
String missings sort to the beginning.
Thus all values of a string variable in a group of
observations are missing if and only if the
last such value is missing after a -sort-
on that variable.
Thus
bysort location (var1) : gen byte allmiss = _n == _N & mi(var1)
l location if allmiss
Nick
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/