Description Usage Arguments Value Examples

Version of `mcX2Test()`

with 50000 Monte Carlo replicates.

1 | ```
mcX2TestB50k(x, y, S, suffStat)
``` |

`x` |
the index of the first variable |

`y` |
the index of the second variable |

`S` |
the conditioning set |

`suffStat` |
the sufficient statistics to do the test, in this case a list of one element: dm where the values matrix is stored |

p value of the test

1 2 3 4 5 | ```
suffStat <- list(dm = cbind("a"=c(0,1,0,0,1,0), "b"=c(1,0,0,0,1,0), "c"=c(0,0,0,1,1,1)))
# test if a is independent of b
mcX2TestB50k(1, 2, NULL, suffStat)
# test if a is independent of b conditioned on c
mcX2TestB50k(1, 2, 3, suffStat)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.