Statalist The Stata Listserver


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

st: RE: duplicates tag not by-able


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: duplicates tag not by-able
Date   Thu, 17 Aug 2006 19:32:37 +0100

I agree with Michael Blasnik. 
There is no reason to support 

by <groupvar>: duplicates tag <varlist>, gen(tag) 

because 

duplicates tag <groupvar> <varlist>, gen(tag) 

does the same thing. 

Alternatively, you can just go back to first principles: 

bysort <groupvar> <varlist> : gen tag = _N - 1 

Nick 
n.j.cox@durham.ac.uk 

Charles Thibault
 
> Are there commands that allow me to get around the fact that 
> the command
> 
> duplicates tag
> 
> is not by-able?

*
*   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