Use PROC SORT to sort by sex. Then insert a BY sex; statement in your PROC LOGISTIC code. Be sure to drop the STRATA statement because that has a different purpose.
... View more
It looks like you need binomial tests. Try: proc freq data = dataset; where age ne '' and trt in ("included","excluded"); by age; table trt / binomial; exact binomial; output out = pvalue binomial; run; Steve Denham
... View more