Help using Base SAS procedures

PROC LOGISTIC BY and STRATA statements

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

PROC LOGISTIC BY and STRATA statements

Hi, I'm doing logisitic regression analyses for men and women separately to see how gender makes a difference. I think BY and STRATA statements both can make it work. However, I am curious what the difference would be using these two statements?


Accepted Solutions
Solution
‎05-04-2017 09:10 AM
PROC Star
Posts: 768

Re: PROC LOGISTIC BY and STRATA statements

In this case, as in any analysis situation, if you want to do separate analysis based on the distinct values of a categorical variable (in this case gender), use the BY statement.

View solution in original post


All Replies
Solution
‎05-04-2017 09:10 AM
PROC Star
Posts: 768

Re: PROC LOGISTIC BY and STRATA statements

In this case, as in any analysis situation, if you want to do separate analysis based on the distinct values of a categorical variable (in this case gender), use the BY statement.

Occasional Contributor
Posts: 8

Re: PROC LOGISTIC BY and STRATA statements

It took me hours to run PROC LOGISTIC with STRATA statement. I thought it would have also given me the results for each gender group. But it did not. You're right. Thanks!

PROC Star
Posts: 768

Re: PROC LOGISTIC BY and STRATA statements

Anytime, glad to help Smiley Happy

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 187 views
  • 1 like
  • 2 in conversation