Margin totals in xtabs
Posted
by James
on Stack Overflow
See other posts from Stack Overflow
or by James
Published on 2010-04-02T13:06:16Z
Indexed on
2010/04/02
13:13 UTC
Read the original article
Hit count: 120
Filed under:
r
If you have 2 cross classifying variables you can use rowSums
and colSums
to produce margin totals on an xtabs
output. But how can it be done if you have 3 classifying variables (ie margin totals in each sub table)?
© Stack Overflow or respective owner