I'm trying to create a table similar to the one below (for illustration, using demo data from https://stats.idre.ucla.edu/stat/data/hsbdemo)
Male Female OR 95% CI
N % N %
SES
Low
Middle
High
15
47
29
16.5
51.6
31.9
32
48
29
47
44.0
26.6
1
0.5
0.5

0.2
0.2

1
1
Type of program
General
Academic
Vocation
21
47
23
23.1
51.6
25.3
24
58
27
22.0
53.2
24.8
1
1.1
1

0.5
0.5

2.2
2.3
School type
Public
Private
77
14
84.6
15.4
91
18
83.5
16.5
1
1.1
0.5
0.9
2.3
1.6
I can get all this data in separate tables through something simple like:
global list1 ses prog schtyp
foreach x in $list1 {
asdoc ta `x' female, col dec(1) save(Table1.doc)
asdoc logistic female i.`x'
}

But I'm struggling to get one table with all the information (or even one table with just the cross tabs).

Thanks in advance!