Learn R Programming

jmv (version 0.7.0.3)

contTablesPaired: Paired Samples Contingency Tables

Description

McNemar test

Usage

contTablesPaired(data, rows, cols, counts = NULL, pcRow = FALSE,
  pcCol = FALSE)

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
pcRow
TRUE or FALSE (default), provide row percentages
pcCol
TRUE or FALSE (default), provide column percentages

Examples

Run this code
## Not run: ------------------------------------
# contTablesPaired(data, rows='x', cols='y')
## ---------------------------------------------

Run the code above in your browser using DataLab