data(mesoBin)
# run the NCPC algorithm with alpha=0.05 (on discrete data)
ncpc(mesoBin$Meso, alpha=0.05, test.type="mc-x2-c")
# run the NCPC* algorithm with alpha=0.05 (on discrete data)
res <- ncpc(mesoBin$Meso, alpha=0.05, test.type="mc-x2-c", star=TRUE)
# analysis of results:
class(res)
# although of class DDGraph, behaves much like a list
names(res)
# parameters used in obtaining results
res$params
# labels for each of the variables
res$final.calls
# direct variables
res$direct
### load continous data
data(mesoCont)
# run the NCPC algorith with alpha=0.05 (on continuous data)
ncpc(mesoCont$Meso, alpha=0.05, test.type="cor", max.set.size=1)
# run the NCPC* algorith with alpha=0.05 (on continuous data)
ncpc(mesoCont$Meso, alpha=0.05, test.type="cor", max.set.size=1, star=TRUE)
Run the code above in your browser using DataLab