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

st: Tabulate, different results


From   "Anek Stata" <[email protected]>
To   [email protected]
Subject   st: Tabulate, different results
Date   Wed, 10 Nov 2004 02:43:00 +0000

Greetings everyone,

I expected to get similar results from the two commands below. However, the resulting frequencies are quite different when one command or the other is used. Would anyone have an explanation for that?

1st command)

. sort variable1;

. by variable1: tabulate variable2 [aweight];

2nd command)

. tabulate variable2 variable1 [aweight];

 
Thanks in advance,
 
anek
 
 


Share a single photo or an entire slide show right inside your e-mail with MSN Premium: Join now and get the first two months FREE* * * 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