summary.table
Summary of a table Object

Description

Provides a summary of an object inheriting from class table.

Usage

summary.table(object, ...)
print.summary.table(x, digits = max(1L, getOption("digits") - 3L), ...)

Arguments

object an object that inherits from "table".
... additional arguments to pass to or from other methods.
x an object that inherits from "summary.table".
digits controls how many digits of a number should be printed.

Details

This is a method for the function summary() for objects inheriting from class table. See summary or summary.default for the general behavior of this function and for the interpretation of object.
summary.table includes a Chi-square test for independence of all the factors if the table object has more than 1 dimension.
print.summary.table is a method of generic function print for class "summary.table".
Value
a list object of class "summary.table" with the following components:

n.cases the number of cases which is the sum of object.
n.vars the length of dimension of object.
The following components are provided only when n.vars is greater than 1:
statistic Chi-square test statistic for independence of all factors.
parameter the degrees of freedom.
approx.ok logical value to indicate if all the expected value greater than or equal to 5.
p.value the p-value of Chi-square Test.
call the "call" attribute of object present.
See Also
table
Examples
a <- sample(letters[1:3], 200, rep=TRUE)
ta <- table(a)
sta <- summary(ta)
sta

A <- sample(LETTERS[1:3], 200, rep=TRUE) taA <- table(a, A) summary(taA)

Package base version 6.1.2-7
Package Index