jmv

Paired Samples Contingency Tables

McNemar test

Example usage

 contTablesPaired(data, rows='x', cols='y')
 

Arguments

data — the data as a data frame

rows — a string naming the variable to use as the rows in the contingency table

cols — a string naming the variable to use as the columns in the contingency table

counts — a string naming the variable to use as counts, or NULL if each row represents a single observation

pcRowTRUE or FALSE (default), provide row percentages

pcColTRUE or FALSE (default), provide column percentages