VDCcrossTabulation {VDCutil} | R Documentation |
This calculate cross tabs with marginals and proportions.
VDCcrossTabulation(data=parent.env(),classificationVars=NULL, freqVars=NULL, wantPercentages=T, wantTotals=T, wantStats=T, wantExtraTables=FALSE, HTMLfile="", ...)
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 |
None. Writes HTML output to designated file.
Micah Altman vdc-dev@latte.harvard.edu http://thedata.org
VDCcrossTabulation(as.data.frame(Titanic),classificationVars=c("Class","Sex","Age","Survived"),freqVars=c("Freq"),wantExtraTables=TRUE)