summ {epicalc}R Documentation

Summary with graph

Description

Summary data as table. Summary a variable with statistics and graph

Usage

summ(x=.data, by=NULL, graph=TRUE, box=FALSE)

Arguments

x 'x' can be a data frame or a vector. 'summ()' is the same as 'summ(.data)'
by a stratification variable, valid only when x is a vector
graph automatic plot of a sorted dot chart if 'x' is a vector
box add a boxplot to the graph (by=NULL)

Details

For data frames, 'summ' gives basic statistics of each variable in the data frame. The other arguments are ignored.

For single vectors, a sorted dot chart is also provided, if graph=TRUE (default).

Author(s)

Virasakdi Chongsuvivatwong <cvirasak@medicine.psu.ac.th>

See Also

'summary', 'use', 'des'

Examples

data(Oswego)
.data <- Oswego
attach(.data)

# The above lines generate a hypothetical data frame. 
# In reality, one just exploits 'use("Oswego.rec")', if the file is available.
summ()
summ(age)
summ(age, box=TRUE)
summ(age, by=sex)

[Package epicalc version 2.4.0.11 Index]