Thank you!
anyway i can control number of decimals, so to have "10" instead of
"10.00" for example?
Thank you in advance and best regards
ziad
On 10/8/07, Olalekan Uthman <[email protected]> wrote:
> Hi,
>
>
> Hi,
>
> sysuse auto, clear
>
> . tab rep78 foreign, row
>
> +----------------+
> | Key |
> |----------------|
> | frequency |
> | row percentage |
> +----------------+
>
> Repair |
> Record | Car type
> 1978 | Domestic Foreign | Total
> -----------+----------------------+----------
> 1 | 2 0 | 2
> | 100.00 0.00 | 100.00
> -----------+----------------------+----------
> 2 | 8 0 | 8
> | 100.00 0.00 | 100.00
> -----------+----------------------+----------
> 3 | 27 3 | 30
> | 90.00 10.00 | 100.00
> -----------+----------------------+----------
> 4 | 9 9 | 18
> | 50.00 50.00 | 100.00
> -----------+----------------------+----------
> 5 | 2 9 | 11
> | 18.18 81.82 | 100.00
> -----------+----------------------+----------
> Total | 48 21 | 69
> | 69.57 30.43 | 100.00
>
>
>
>
> . tab rep78 foreign, col
>
> +-------------------+
> | Key |
> |-------------------|
> | frequency |
> | column percentage |
> +-------------------+
>
> Repair |
> Record | Car type
> 1978 | Domestic Foreign | Total
> -----------+----------------------+----------
> 1 | 2 0 | 2
> | 4.17 0.00 | 2.90
> -----------+----------------------+----------
> 2 | 8 0 | 8
> | 16.67 0.00 | 11.59
> -----------+----------------------+----------
> 3 | 27 3 | 30
> | 56.25 14.29 | 43.48
> -----------+----------------------+----------
> 4 | 9 9 | 18
> | 18.75 42.86 | 26.09
> -----------+----------------------+----------
> 5 | 2 9 | 11
> | 4.17 42.86 | 15.94
> -----------+----------------------+----------
> Total | 48 21 | 69
> | 100.00 100.00 | 100.00
> --- Ziad El-Khatib <[email protected]> wrote:
>
> > Hi again
> > i am used to cross-tab 2 variables in SPSS where the
> > person can show %
> > for row or columns.
> > any tips how to do it in STATA?
> >
> > thank you and best regards
> > ziad
> > *
> > * 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/
> >
>
>
>
>
> ____________________________________________________________________________________
> Need a vacation? Get great deals
> to amazing places on Yahoo! Travel.
> http://travel.yahoo.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/
>
--
Ziad El-Khatib
AIDS Unit
National Institute for Communicable Diseases (NICD)
1 Modderfontein Road
Private Bag X4, Sandringham, 2131
Johannesburg, South Africa
Mobile: +27 (0) 72-52 39 716
Phone: +27 (0) 11-386 6433
Fax (NICD): +27 (0)11 386 6453
Fax (alternative): +27 (0)866 18 2871
http://www.nicd.ac.za/
Division of International Health (IHCAR)
Karolinska Institutet
www.phs.ki.se/ihcar
*
* 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/