Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Question about tabsort (shorter alternative)

From   Gary Longton <>
Subject   Re: st: Question about tabsort (shorter alternative)
Date   Wed, 07 Aug 2002 12:22:58 -0700

Rodrigo Briceņo wrote:

I'm using one procedure that Nick gave me few weeks ago. But I have one
problem that I don't know how to resolve.

The solution provided was:

bysort clave1 : gen freq = - _N egen group = egroup(freq clave1) , l(clave1) tabulate group if group < 11
And I trying to use the same sintaxis to obtain from the variable
"diagnostico" the 10 most frequent diagnoses for an hospital.
The error ocurres in the second step of the procedure. The variable is

egen group=egroup(freq diagnostico), I(diagnostico)
I() invalid
this is an "I" for "l" typo for the abbreviated -,label(lblvarlist)- option of the egenmore egroup() function.

i.e. I(diagnostico) should be l(diagnostico)

- Gary

* For searches and help try:

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