View source: R/nominalSymmetryTest.r

nominalSymmetryTest | R Documentation |

Conducts an omnibus symmetry test for a paired contingency table and then post-hoc pairwise tests. This is similar to McNemar and McNemar-Bowker tests in use.

```
nominalSymmetryTest(x, method = "fdr", digits = 3, exact = FALSE, ...)
```

`x` |
A two-way contingency table. It must be square. It can have two or more levels for each dimension. |

`method` |
The method to adjust multiple p-values.
See |

`digits` |
The number of significant digits in the output. |

`exact` |
If |

`...` |
Additional arguments |

The omnibus McNemar test may fail when there are zeros in critical cells.

Currently, the `exact=TRUE`

with a table greater
than 2 x 2 will not produce an omnibus test result.

A list containing: a data frame of results of the global test; a data frame of results of the pairwise results; and a data frame mentioning the p-value adjustment method.

Salvatore Mangiafico, mangiafico@njaes.rutgers.edu

https://rcompanion.org/handbook/H_05.html

`pairwiseMcnemar`

,
`groupwiseCMH`

,
`pairwiseNominalIndependence`

,
`pairwiseNominalMatrix`

```
### 2 x 2 repeated matrix example
data(AndersonRainBarrel)
nominalSymmetryTest(AndersonRainBarrel)
### 3 x 3 repeated matrix example
data(AndersonRainGarden)
nominalSymmetryTest(AndersonRainGarden,
exact = FALSE)
```

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.