Solved
Contributor
Posts: 39

# 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: 10,200

## Re: Interaction visualization in PROC LOGISTIC

```Also check

effectplot  fitslice /  sliceby=  plotby= ;

```

All Replies
PROC Star
Posts: 955

## 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,834

## 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: 10,200

## Re: Interaction visualization in PROC LOGISTIC

```Also check

effectplot  fitslice /  sliceby=  plotby= ;

```
☑ This topic is solved.