GCM_wrap<-function(x,y,z,suffStat){
x1=suffStat$data[,x];
y1=suffStat$data[,y];
z1=suffStat$data[,z];
if (length(z)>0){
out = gcm.test(x1,y1,z1)
} else{
out = gcm.test(x1,y1)
}
return(out$p.value)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.