DWIMxtabs {AIS}R Documentation

DWIM cross tabs, with pretty printing

Description

This calculate cross tabs with marginals and proportions.

Usage

DWIMxtabs(formula,data=parent.env(),var.labels=NULL, ...) 

Arguments

data data to be analyzed
formula crosstab formula suitable for xtabs
var.labels optional substitute varilable lables, names will be used if not supplied
... arguments to pass to xtabs

Value

Returns a crosstabulation, essentially a combination of xtabs with proportions and marginals. DWIMxtabs will automatcally recode continuous variables to categories prior to crosstabulation

Author(s)

Micah Altman micah_altman@harvard.edu http://www.hmdc.harvard.edu/micah_altman

See Also

xtabs,

Examples

        DWIMxtabs(Freq~.,as.data.frame(Titanic))


[Package AIS version 1.0 Index]