Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: what's wrong with this statement?


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   st: what's wrong with this statement?
Date   Tue, 23 Sep 2008 14:15:51 -0400

I've done this many times (in the past) to identify duplicate records;
I've typed and retyped this several times. What's going wrong?

. bys faccode pat_mrn admit_datetime discharge_datetime: gen dups=_N

. tab dups
variable dups not found
r(111);


Notice, the first line does NOT produce an error. However, it also
does not produce a new variable!

Thanks in advance for pointing out what must be an obvious error.


Jeph


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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