Programming the statistical procedures from SAS

Interaction visualization in PROC LOGISTIC

Accepted Solution Solved
Reply
Contributor
Posts: 39
Accepted Solution

Interaction visualization in PROC LOGISTIC

I am running a proc logistic and am looking specifically at a 3 way interaction. Here is some descriptives on my data:

Outcome: mortality (y/n)

Var 1: gender (M/F)

Var 2: dichotomous lab value (above/ below certain critical cutoff- y/n)

Var 3: second dichotomous lab value (above/ below certain critical cutoff- y/n)

 

I am looking to see who is more at risk for the mortality outcome and have included an interaction for these terms in the model. My interaction p-value is not significant, but I want to report directions. Since I have 3 dichotomous variables, what would be the best way to present this (preferably graphically) in regards to who is more likely to experience mortality?


Accepted Solutions
Solution
‎05-04-2017 03:25 AM
Super User
Posts: 9,758

Re: Interaction visualization in PROC LOGISTIC

Also check

effectplot  fitslice /  sliceby=  plotby= ;



View solution in original post


All Replies
PROC Star
Posts: 631

Re: Interaction visualization in PROC LOGISTIC

[ Edited ]

You can probably use 

 

effectplot interaction;

as documented here

 

https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_logistic_se...

Contributor
Posts: 39

Re: Interaction visualization in PROC LOGISTIC

Thank you, so this plots the probabilities for 2 of my predictors but fixes the value for my 3rd. I want to compare across all 3 somehow..

SAS Super FREQ
Posts: 3,537

Re: Interaction visualization in PROC LOGISTIC

Look at the article "Visualize an ANOVA with two-way interactions" and see if you can figure out how to extend it to your three binary variables. You will end up with 6  box plots.

 

 

 

Solution
‎05-04-2017 03:25 AM
Super User
Posts: 9,758

Re: Interaction visualization in PROC LOGISTIC

Also check

effectplot  fitslice /  sliceby=  plotby= ;



☑ This topic is solved.

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

Discussion stats
  • 4 replies
  • 164 views
  • 2 likes
  • 4 in conversation