Skip to content
Prev 33539 / 398506 Next

Grouping binary data

On Thu, 19 Jun 2003, Henric Nilsson wrote:

            
Look at loglm1.data.frame in package MASS, or xtabs: each work by setting 
up a suitable call to table.

If you want to sum up over cases with the same factors (not what is 
usually meant by collapsing), take a look at multinom (package nnet) which 
has options to do this for multinomials (and Bernoulli is a special case).