Learn R Programming

vcd (version 0.1-3.5)

summary.table: Summary of a m x n-table

Description

Prints a m x n-contingency table along with percentages, marginal and conditional distributions.

Usage

summary.table(object, margins = TRUE, percentages = FALSE,
        conditionals = c("none", "row", "column"), ...)

Arguments

object
a m x n-contingency table
margins
if TRUE, marginal distributions are computed.
percentages
if TRUE, relative frequencies are computed.
conditionals
if not "none", the conditioinal distributions, given the row/column factor, are computed.
...
currently not used.

Value

  • Returns invisibly a m x n x o - table, o depending on the amount of choices (max 3).

See Also

mar.table, prop.table

Examples

Run this code
data(UCBAdmissions)
summary(margin.table(UCBAdmissions, 1:2))

Run the code above in your browser using DataLab