report.propTable {reporter}R Documentation

Create a contingency table

Description

The function print the contingency table with columns sums or rowsums.

Usage

report.propTable(x, y, margin = NULL, digits = 1)

Arguments

x

First categorical variable.

y

Second categorical variable.

margin

Index to generate margin for. If NULL, then simple probabilities (non-conditional) are reported.

Author(s)

Marjan Cugmas

Examples

report.propTable(x = mtcars$gear, y = mtcars$carb, margin = 1, digits = 2)

[Package reporter version 0.0.0.903 Index]