Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

[no subject]


"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. 


bysort location (var1) : gen byte allmiss = _n == _N & mi(var1) 
l location if allmiss 

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index