[R] how to get such crosstable?

From: ronggui <0034058_at_fudan.edu.cn>
Date: Fri 24 Jun 2005 - 01:22:15 EST

i use the CrossTable (frome gregmic package) function to get such a table as below. but the percentage of the non-NA levels(here 1,2,3,4,5) is not totally 100%.

is there any way to get a table that percentage of the non-NA levelsis totally 100%,as the SPSS' valid percentage.thank you!

   Cell Contents
|-------------------------|

|                   Count |
|             Row Percent |

|-------------------------|

Total Observations in Table: 650

          |        1  |        2  |        3  |        4  |        5  | 
          |-----------|-----------|-----------|-----------|-----------|
          |      169  |      294  |      151  |       31  |        5  | 
          |    0.260% |    0.452% |    0.232% |    0.048% |    0.008% | 
          |-----------|-----------|-----------|-----------|-----------|

Number of Missing Observations: 4 (0.6116208%)

-- 
Department of Sociology
Fudan University,Shanghai
Blog:http://sociology.yculblog.com

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Jun 24 01:47:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:00 EST