wtable {memisc} | R Documentation |
'wtable' is a helper function for aggregate.formula and genTable. It can be used to recast a contingency table into a format needed for binomial logit analyses.
wtable(x,w=NULL)
x |
a factor |
w |
a numeric vector of weights of the same length as x . |
A (one-dimensional) table of counts.
aggregate(wtable(Admit,Freq)~.,data=UCBAdmissions)