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

AW: st: Variable patterns and observed frequencies


From   Thomas M�hlmann <[email protected]>
To   <[email protected]>
Subject   AW: st: Variable patterns and observed frequencies
Date   Mon, 10 Oct 2005 10:05:25 +0200

Thank you, Svend.  
-Groups- is exactly what I was looking for!

Thomas

 
-----Urspr�ngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Svend Juul
Gesendet: Monday, October 10, 2005 8:42 PM
An: [email protected]
Betreff: Re: st: Variable patterns and observed frequencies

Thomas wrote:

I am looking for an elegant way of producing an indexed frequency table.
In particular, I have observations on three variables:

ID var1 var2 var3
1     1    2    1
2     2    3    1
3     5    4    5
4     6    6    6
...
And I would like to produce a table showing only different patterns and
there observed frequencies, ie.

               var1 var2 var3 frequency
First pattern    1    1    1        54
Second pattern   1    1    2        43
-------------------------------

Nick Cox did it:

   . findit groups

Svend

________________________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi (Institute of Public
Health, Department of Epidemiology) Vennelyst Boulevard 6 DK-8000 Aarhus C,
Denmark Phone, work:  +45 8942 6090 Phone, home:  +45 8693 7796
Fax:          +45 8613 1580
E-mail:       [email protected]
_________________________________________________________

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



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