I have the following code (Stata11)
After the first line, I get an error message "not sorted". However, the assert statement is true. What is going on here? (Maybe it is relevant that the source data (like the author) is a SAS export :-) )
Code:
by year: summarize Misspct gen origseq=_n sort year assert(origseq==_n)
Comment