wtable {memisc}R Documentation

One-dimensional table of (weighted) frequencies

Description

'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.

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-10 Index]