Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

How can we make interaction plots for continuous variables in logistic regression?

Asked by Ananya Pawar Nov 9, 2019 1.2K views 2 answers
Share

Your answer

2 Answers

Valeria Latest answer

Answered on Sep 14, 2023

Hey AnanyaPawar,


Great question! Making interaction plots for continuous variables in logistic regression can be quite insightful. I've had some experience with this, so here's my two cents.

First off, it's essential to visualize how the relationship between two continuous variables impacts the outcome. In your code snippet, you're using Lag4 as the x-axis variable and exploring its interaction with Volume. The choice of displaying quartiles or means and standard deviation using the 'mdrt.values' argument is clever. It helps to capture different aspects of the relationship.

My suggestion would be to further enhance the plot by incorporating confidence intervals, especially if you have a sizable dataset. This can provide a clearer picture of the uncertainty around the estimated relationships.

Additionally, consider experimenting with different color palettes to make the plot more visually appealing and easier to interpret. It might sound trivial, but a well-designed plot can convey complex information more effectively.

Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.