Hello my big problem is, i can´t find the phi-correlation instruction in the R - programm. (correlation method= spearman, pearson, kendall, I have found) I also cant find the transform instruction which I can transform rational vector into nominal vectors (binary) Transforming into ordinaI I have found with the “rank” instruction, but I have no found into nominal dates. Please help me . I need it for an examination !!! Thank you Adolf Pessernig [[alternative HTML version deleted]]
On 16 Feb 2005 at 12:54, Nicole wrote:> Hello my big problem is, i can?t find the phi-correlation instruction > in the R - programm. (correlation method= spearman, pearson, kendall, > I have found)See package "vcd", command "assoc.stats".> I also cant find the transform instruction which I can transform > rational vector into nominal vectors (binary)What about using "as.factor"? # little example... x<-c(0,1,0,0,0,1,1) y<-as.factor(x) y assoc.stats(table(y,y)) HTH, Bernd
Nicole wrote:> Hello my big problem is, i can?t find the phi-correlation instruction in the > R - programm. (correlation method= spearman, pearson, kendall, I have > found) > > > > I also cant find the transform instruction which I can transform rational > vector into nominal vectors (binary) > > Transforming into ordinaI I have found with the "rank" instruction, but I > have no found into nominal dates. > > > > > > Please help me . > > I need it for an examination !!!So what? Time to do your homework, isn't it? phi: it is the same as pearson for a 2x2 table of dichotomous/binary data. Should be written in any basic textbook on descriptive statsitics. Do your homework!!! I really dislike these triple exclamation marks. nominal: Well, try factor() or as.character(), or whatever .... depends on your aims.... Who are you? "Adolf Pessernig", or "nicole.raschun"??? Uwe Ligges> > > Thank you Adolf Pessernig > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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