I'm sure this question has come up before, but I can't find a solution after looking around, so I'll pose it here. Say I have a binary variable, a. I want to tabulate the one's in a by two other variables, x and y:
where fmn is the frequency of a for that cell.
What's the best way of doing this?
y | 1 | 2 | 3 | . | n | |
x | f11 | f12 | . | . | f1n | |
1 | . | |||||
2 | . | |||||
. | . | |||||
m | fm1 | fmn |
What's the best way of doing this?