Normally in sas proc report we can use the byvar/byval to have the by category at the top of the display. In my case my display has 2 by categories. And I am not sure how to do that. I can add one using proc report but I don't know how to add 2.
I want my display to be like:
Sex: Male (100) Treatment: Aspirin (40mg) (N=21)
Precompute the group size and add that variable to the by grouping. Use inline styling in a single
TITLE
statement, orTITLE1
TITLE2
statements.Example:
Output: