DWIMxtabs {AIS} | R Documentation |
This calculate cross tabs with marginals and proportions.
DWIMxtabs(formula,data=parent.env(),var.labels=NULL, ...)
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 |
Returns a crosstabulation, essentially a combination of xtabs
with proportions and marginals. DWIMxtabs will automatcally recode continuous variables to categories prior to crosstabulation
Micah Altman micah_altman@harvard.edu http://www.hmdc.harvard.edu/micah_altman
DWIMxtabs(Freq~.,as.data.frame(Titanic))