Statalist The Stata Listserver

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

st: "unique" with "by"

From   "Shige Song" <>
Subject   st: "unique" with "by"
Date   Wed, 19 Apr 2006 22:57:41 +0800

Dear Collegues,

I want to get count of unique values of a variable and I want to use
it conjuction with "by" like this:

sort hhid
by hhid: unique id

But unfortunately the UNIQUE command does not allow the use of "by".
Are there other options? Thanks!


*   For searches and help try:

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