summary.table {vcd}R Documentation

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).

Author(s)

David Meyer
david.meyer@ci.tuwien.ac.at

See Also

mar.table, prop.table

Examples

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

[Package vcd version 0.1-3.5 Index]