Hi,
I have a set of column and row variables to make cross-tables. I came across a post that asked a similar question using double loops, but not helping with my case: https://www.stata.com/statalist/arch.../msg00074.html
My goal is to make cross-tabs of all combinations of column and row variables i.e. aa vs xx, aa vs yy, bb vs xx, bb yy. and store them in a single table in separate columns using the asdoc package (ssc). The method I tried is using row variables as columns sometimes (e.g. xx vs aa), which I don't want:
foreach v of varlist aa bb {
asdoc tab xx yy `v', col chi
}
Please let me know if this is possible to do.
Thanks in advance!
I have a set of column and row variables to make cross-tables. I came across a post that asked a similar question using double loops, but not helping with my case: https://www.stata.com/statalist/arch.../msg00074.html
My goal is to make cross-tabs of all combinations of column and row variables i.e. aa vs xx, aa vs yy, bb vs xx, bb yy. and store them in a single table in separate columns using the asdoc package (ssc). The method I tried is using row variables as columns sometimes (e.g. xx vs aa), which I don't want:
foreach v of varlist aa bb {
asdoc tab xx yy `v', col chi
}
Please let me know if this is possible to do.
Thanks in advance!
Comment