Description Usage Arguments Details Value See Also Examples

View source: R/contingencyTest.R

Performs Chi-squared test or Fisher's exact test for testing the significance of association between conditions and eubiotic/dysbiotic impacts in a contingency table.

1 2 | ```
contingencyTest(microCount, chisq = TRUE, fisher = TRUE,
alternative = c("greater"))
``` |

`microCount` |
a |

`chisq, fisher` |
logical indicating if the Chi-squared test or Fisher's exact test should be performed. |

`alternative` |
parameter specifying for alternative hypothesis, only used when |

Chi-squared test for testing the probability that the proportions of eubiotic frequencies are different between two conditions; furtherly, the Fisher's exact test for testing whether one condition is more likely to be associated to eubiotic impact. More details, refer to `chisq.test`

and `fisher.test`

A list with following components: Chisq Chi-squared test results for each pair-wise condition. Chisq.p the p-values of the Chi-squared tests for all pair-wise conditions. Fisher Fisher's exact test results for each pair-wise condition. Fisher.p the p-values of the Fisher's exact tests for all pair-wise conditions.

`contingencyCount`

, `fisher.test`

, `chisq.test`

1 2 3 4 5 6 | ```
data(microCount)
test = contingencyTest(microCount,chisq = TRUE,fisher = TRUE,
alternative = "greater")
chisq.p = test[["Chisq.p"]]
fisher.p = test[["Fisher.p"]]
``` |

eudysbiome documentation built on May 2, 2018, 4:04 a.m.

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.