Please I need help on this.
How can I use a proc report with cross to create a table below. Please notice the numbers on the table are just examples so, ignore the numbers
Test
variable
Category
Arm_1
Arm_2
Total
N=80
N=90
N=170
sex
Female
1/45 (2)
3/86 (3.5)
4/131 (3)
Male
23/23 (100.0)
54/58 (93.1)
80/84 (95.2)
Race
Black
1/45 (2)
3/86 (3.5)
4/131 (3)
white
6/45 (100.0)
7/86 (93.1)
13/131 (9.9)
Hispanic
6/45 (2)
9/86 (3.5)
15/131 (11.5)
I tried to use the code below but, it doesnt give me the table i wanted.
proc report data=want nowd headline headskip spacing=4 split="\"; column test gender race (n pctn); define sex / group "sex"; define race / display "race"; define test / across order=internal "TREATMENT GROUP " ; run;
... View more