wtable {memisc}R Documentation

One-Dimensional Table of Frequencies with Weights

Description

'wtable' is a helper function for aggregate.formula and genTable. It is useful to recast a contingency table into a format suitable for binomial logit analysis.

Usage

  wtable(x,w=NULL)

Arguments

x a factor
w a numeric vector of weights of the same length as x.

Value

A (one-dimensional) table of counts.

Examples

  aggregate(wtable(Admit,Freq)~.,data=UCBAdmissions)

[Package memisc version 0.11-6 Index]