I'd like to look at the joint distribution of 3 or more discrete variables a,b,c,...
I imagine a command called "list a b c, distinct" that would give output like this
a b c count
0 1 1 93
1 1 1 95
etc
where "count" is the number of rows with the given values of a,b,c.
In Unix, I can do this with "uniq -c". In SAS I can do it with PROC SQL, or with the LIST option in PROC FREQ tables.
How can I do it in Stata?
I imagine a command called "list a b c, distinct" that would give output like this
a b c count
0 1 1 93
1 1 1 95
etc
where "count" is the number of rows with the given values of a,b,c.
In Unix, I can do this with "uniq -c". In SAS I can do it with PROC SQL, or with the LIST option in PROC FREQ tables.
How can I do it in Stata?
Comment