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" <>
To   <>
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) 


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 


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:

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