VDCcrossTabulation {VDCutil}R Documentation

VDC cross tabs, with pretty printing

Description

This calculate cross tabs with marginals and proportions.

Usage

VDCcrossTabulation(data=parent.env(),classificationVars=NULL, freqVars=NULL,
  wantPercentages=T, wantTotals=T, wantStats=T, wantExtraTables=FALSE,
  HTMLfile="", ...)

Arguments

data data to be analyzed
classificationVars list of variables to form right hand side of formula for xtabs
freqVars optional list of variables to form left hand side of formula for xtabs
wantPercentages
wantTotals
wantStats
wantExtraTables
HTMLfile file argument to pass to HTML
... arguments to pass to xtabs

Value

None. Writes HTML output to designated file.

Author(s)

Micah Altman vdc-dev@latte.harvard.edu http://thedata.org

See Also

xtabs, VDCxtabs

Examples

VDCcrossTabulation(as.data.frame(Titanic),classificationVars=c("Class","Sex","Age","Survived"),freqVars=c("Freq"),wantExtraTables=TRUE) 


[Package VDCutil version 1.15 Index]