[R] help on ks.test and shapiro.test

Wen Zhang wwzhang at gmail.com
Fri Nov 18 08:13:58 CET 2005


I have three files of data which are available at http://zhangw.com/ 
R/, varied at the number of data. I tried to use R to analyze using  
shapiro.test, ks.test, and t.test. t.test ran as expected, however,  
when I run shapiro.test and ks.test commands, error message always  
occurred. Error message for
shapiro.test is
"Error in "[.data.frame"(x, complete.cases(x)) :
	undefined columns selected"

ks.test is
"Error in ks.test(control) : argument "y" is missing, with no default"

As a newcomer to R, I don't know how to deal with this. Can anyone  
help me?
--- ---

Life is a foreign language; all man mispronouce it.
                 ---Christopher Morley

ç»ˆäºŽï¼Œé‚£é‡Žå…½å€’ä¸‹äº†ï¼Œå¼‚æ•™å¾’ä»¬ä¸ºæ­¤è€Œæ¬¢åº†ã€‚ ä½†æ˜¯ 
ä¸€åˆ‡å¹¶æœªç»“æŸï¼Œå› ä¸ºä¸€åªå·¨é¸Ÿå·²ä»Žç°çƒ¬ä¸­è¯žç”Ÿã€‚é‚£é¸Ÿ 
ä»Žç©ºä¸­ä¿¯è§†ç€å¼‚æ•™å¾’ä»¬ï¼Œå‘ä»–ä»¬æ–½æ”¾ç«ä¸Žé›·ç”µã€‚å› ä¸º 
è¿™é‡Žå…½å·²é‡ç”Ÿä¸ºå·¨é¸Ÿï¼Œæ¢å¤äº†åŠ›é‡ã€‚é‡‘é’±çš„è¿½éšè€…ä»¬ 
åœ¨ææƒ§ä¸­åŽé€€ã€‚

                   Mozilla ä¹‹ä¹¦, 7:15

My Blog: http://zhangw.com/wp/

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird




More information about the R-help mailing list