Statalist


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

Re: st: can't get frequency on tables


From   SamL <[email protected]>
To   statalist <[email protected]>
Subject   Re: st: can't get frequency on tables
Date   Sat, 23 Feb 2008 23:12:39 -0800 (PST)

I think this will work (it works on my stata8.2 and I don't think this was
changed):

tab broadincomecat jobsat, row

That should give you row percentages.  For column percentages it would be:

tab broadincomecat jobsat, column

and for table percentages it would be:

tab broadincomecat jobsat, cell

Hope this helps.

Sam



On Sun, 24 Feb 2008, Adrian de la Garza wrote:

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