[R] phi correlation

Bernd Weiss bernd.weiss at uni-koeln.de
Wed Feb 16 13:48:57 CET 2005


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




More information about the R-help mailing list