[R] npmc and data.frame problems

From: Barbra C. Utley <barb_at_vt.edu>
Date: Wed, 14 May 2008 12:30:05 -0400


Hello,

I am trying to run a nonparametric comparison of multiple datasets (A-E).

After importing my csv file I sorted the variable value by the letter class (representing height along a streambank).

a=Z[Letter=="A"]

b=Z[Letter=="B"]

c=Z[Letter=="C"]

d=Z[Letter=="D"]

e=Z[Letter=="E"]

Next I tested normality and variance assumptions and the data was not normal and the variances were not equal. So I ran a kruskal wallis test.

kruskal.test(Z~Y) came by with p<<0.05 for the group means not being equal.  

Next I loaded the npmc library

library(npmc)  

The npmc command calls for a dataset. I think my problem lies in the following commands and how they interact with the npmc command. I also tried just one response variable and a class variable like described in the help file but received errors.  

dataset<-data.frame(a,b,c,d,e)  

npmc(dataset)

Error in as.vector(x, mode) : invalid argument 'mode'

> mode(dataset)

[1] "list"  

I tried running the debug function on npmc; however, I am not much of a programmer and the code did not make much sense to me.

I would appreciate any help you can give. The professor I normally contact with questions is not available. Thanks,

Barb    

Barbra C. Utley

Doctoral Candidate

Biological Systems Engineering

Virginia Tech

barb_at_vt.edu

540-808-8800  

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 14 May 2008 - 20:19:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 14 May 2008 - 20:30:49 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive