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. 

Thus 

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

Nick 
n.j.cox@durham.ac.uk 
*
*   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/



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