[R] Frequencies- and Crosstabs-Output like SPSS ???

Karsten Mueller muellerk at uni-wuppertal.de
Mon Oct 19 21:40:00 CEST 1998


				[Delayed and reposted by list maintainer
				 due to not passing through spam filter.. MM]
Hello,

I am looking for two R-functions that could generate an Output like SPSS.


1. An equivalent function for (SPSS) FREQUENCIES which generate
   something like this:
   
   
                            Valid     Cum
   Value Frequency Percent Percent   Percent
       1         1     5.3   5.6      5.6
       2         4    21.1  22.2     27.8
       3        11    57.6  61.1     88.9
       4         2    10.5  11.1    100.0
       0         1     5.3  Missing
              ----   -----  -------
       Total    19   100.0  100.0


Valid cases 18; Missing cases 1



2. An "extended-table-function" like SPSS CROSSTABS.
   The R-table-function shows only the observed values:
   
   > table(exam$sex, exam$tutor)
                   jane john
	  female    4    4
	  male      6    6
  
  
   The "extended-R-table-function" should also shows 
         - the expected values
	 - the row percentages
	 - the column percentages
	 - the total percentages
	 - the residuals
	 
   Maybe a function like: 
   
   table.extended(exam$sex, exam$tutor, expected=TRUE, row.perc=TRUE) 
   
   etc.
  
  

Who can help me?


Thanks,


K. Mueller
   
   
---
University of Wuppertal, Germany
e-mail: muellerk at uni-wuppertal.de   
   
	 
	 
	 
	 
	 
	 
  
  
  





-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list