funPhiCC | R Documentation |
Calculate the phi correllation coefficient index between two vectors
funPhiCC(vec1, vec2)
vec1 |
Vector of binary time series (no missing values) |
vec2 |
Vector of binary time series (equal length as vec1, no missing values) |
list with two elements
value
of the phi correlation coefficient and
funName
name of the function
set.seed(1234) data1<-rep(c(1,0,1,1),25) data2<-ifelse(rnorm(100,0,1)<0.7,0,1) funPhiCC(data1,data2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.