Learn R Programming

jmv (version 0.7.0)

contTablesPaired: Paired Samples Contingency Tables

Description

Paired Samples Contingency Tables

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