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

st: Question about tabsort (shorter alternative)


From   "Rodrigo Brice�o" <[email protected]>
To   <[email protected]>
Subject   st: Question about tabsort (shorter alternative)
Date   Wed, 7 Aug 2002 12:43:36 -0600

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
str40.

egen group=egroup(freq diagnostico), I(diagnostico)
I() invalid

Thanks for your help.

Rodrigo


begin 666 winmail.dat
M>)\^(B42`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <`
M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$&
M@ ,`#@```-('" `'``P`*P````,`(@$!`Y &```'```I````"P`"``$````+
M`",```````,`)@``````"P`I```````#`"X```````,`-@``````'@!P``$`
M```7````475E<W1I;VX@86)O=70@=&%B<V]R= ```@%Q``$````E`````<(I
MN7V>DA.N0@YV3PV[17#68\:X,@``)_7 ``(DC; %'W^.( ````(!'0P!````
M&P```%--5% Z4D)224-%3D] 4T%.24=%4U0N0T]-```+``$.`````$ `!@X`
M$@Y!0C["`0(!"@X!````& ````````")+Y"NJ1[-3ZR)BEE4#VJTXH(```,`
M% X!````"P`?#@$````"`0D0`0```%8"``!2`@``FP,``$Q:1G6W[BP$`P`*
M`')C<&<Q,C7B,@-#=&5X!4$!`P'W_PJ `J0#Y <3`H /\P!0!%8_"%4'LA$E
M#E$#`0(`8VCA"L!S970R!@`&PQ$E]C,$1A.W,!(L$3,([PGWMCL8'PXP-1$B
M#&!C`%#S"PD!9#,V%E +I@8``9#=`9!L! `.L!0`.@JB"H1!"H!))VT@=0"0
M;D1G( (@92!P`V!CMPF "' ?0'03X 5 3@W@8&L@9V%V'T '@" J9@?1=PG@
M:P0@86<@;RX@0G4%0$D@[Q/@(,$?)0)@91Z@( ,B4(ID`B G!4!K;F\'X*)H
M)'%T;R 8(',&\.4@P"X=RE1H'T E,2(@IFD"(!]2=FD!`&0A4#)A':QB>24P
M`" @8^,+8"# ,2 Z() )\"$0`1@@<2 ]("T@7W9."N,*@&4IL@G "&!P-RHQ
M*Q K<B@I\RDD*2!P+"!L*"RF'<0!D74?"V .L"M5!I K53P@,3,I<!W*06XG
MD")0='*^>1[B).$>P!_B)G%A(/'['M$!D'@$`"32(R !D N =RGA`W R`W8*
MP <P(S$@=")D!S!G)& =8 W@;_HB,@,Q%E $8!U@*>,*4/\","/@-10'D0(0
M!< #D22@^'-P:1TA)84F4@20`V#_!< ?@ AP)1$O( .@,A,%D?<PX1UA*Z!O
M+T R$A]G(?"/)E(T9S,!'6!R-# EBRTK&#TKZC4)*2T@22C[0"H>)2@M``N 
M-& =0 LQ;R6Z`' AD3?">0AA(F!E[&QP)8L(`&0%$"'0'<0"?4:@```>`$(0
M`0```#0````\141%4$M+3DQ/2$U(4$%#3D)/2D5%14=!0T9!02YN+FHN8V]X
M0&1U<FAA;2YA8RYU:SX``P`)60$````+`!& "" &``````# ````````1@``
M```#A0````````,`$H (( 8``````, ```````!&`````!"%`````````P`3
M@ @@!@``````P ```````$8`````4H4``(YJ`0`>`!2 "" &``````# ````
M````1@````!4A0```0````0````Y+C `'@`5@ @@!@``````P ```````$8`
M````-H4```$````!`````````!X`%H (( 8``````, ```````!&`````#>%
M```!`````0`````````>`!> "" &``````# ````````1@`````XA0```0``
M``$`````````"P`8@ @@!@``````P ```````$8`````#H4````````#`!F 
M"" &``````# ````````1@`````1A0````````,`&H (( 8``````, `````
M``!&`````!B%````````"P`;@ @@!@``````P ```````$8`````!H4`````
M```#`!R "" &``````# ````````1@`````!A0````````L`'H (( 8`````
M`, ```````!&`````(*%```!`````@'X#P$````0````B2^0KJD>S4^LB8I9
M5 ]JM (!^@\!````$ ```(DOD*ZI'LU/K(F*650/:K0"`?L/`0```' `````
M````.*&[$ 7E$!JANP@`*RI6P@``;7-P<W0N9&QL``````!.251!^;^X`0"J
M`#?9;@```$0Z7$UY($1O8W5M96YT<U)O9')I9V]<4F5S<&%L9&]S7$]U=&QO
M;VM<<F5S<"TP,BTP,2TP,BYP<W0``P#^#P4````#``TT_3<```(!?P`!````
M,0```# P,# P,# P.#DR1CDP045!.3%%0T0T1D%#.#DX034Y-30P1C9!0C0V
M-#8S,D8P, `````#``80[CO*VP,`!Q#(`0```P`0$ `````#`!$0`````!X`
M"! !````90```%-4051!3$E35$524SI)355324Y'3TY%4%)/0T5$55)%5$A!
M5$Y)0TM'059%345&15=7145+4T%'3T)55$E(059%3TY%4%)/0DQ%351(051)
:1$].5$M.3U=(3U=43U)%4T],5D4`````BW<`
`
end

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index