Statalist


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

st: can't get frequency on tables


From   Adrian de la Garza <kokootchke@hotmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: can't get frequency on tables
Date   Sun, 24 Feb 2008 01:55:20 -0500

Dear Stata users,

I am trying to create a table like the following one:



. tab broadincomecat jobsat

Job satisfaction:	=1 very unsatisfied...	=5	very
broadincom	satisfied
ecat          1          2	3          4		5	Total
				
1      2,798      4,981	13,857      6,477		1,254	29,367 
2      2,992      6,729	21,004     12,243		1,896	44,864 
3        825      2,481	9,210      6,901		856	20,273 
				
Total      6,615     14,191	44,071     25,621		4,006	94,504 


All I want is to get the frequency by row in percentage and I can't do it! What I mean is that I want in the first cell of this matrix the frequency 2,798/29,367 = 0.095 instead of the number 2,798 that appears on the table above.

My friend has the exact same version that I have (Stata 9), but in his computer, he is able to get these percentages when he writes either the -tab- or the -table- command (can't remember which one, but one of those two works). I don't know why typing the exact same thing yields different results on my computer!

I have already tried the help for each of the commands and various options including -freq- etc. but I can't make it work.

Any suggestions?

Thank you very much in advance.

Cheers,
Adrian
_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index