• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Analysis Factor

The Analysis Factor

Statistical Consulting, Resources, and Statistics Workshops for Researchers

  • Home
  • Our Programs
    • Membership
    • Online Workshops
    • Free Webinars
    • Consulting Services
  • About
    • Our Team
    • Our Core Values
    • Our Privacy Policy
    • Employment
    • Collaborate with Us
  • Statistical Resources
  • Contact
  • Blog
  • Login

How to Combine Complicated Models with Tricky Effects

by Karen Grace-Martin 4 Comments

Need to dummy code in a Cox regression model?

Interpret interactions in a logistic regression?

Add a quadratic term to a multilevel model?

quadratic interaction plotThis is where statistical analysis starts to feel really hard. You’re combining two difficult issues into one.

You’re dealing with both a complicated modeling technique at Stage 3 (survival analysis, logistic regression, multilevel modeling) and tricky effects in the model (dummy coding, interactions, and quadratic terms).

The only way to figure it all out in a situation like that is to break it down into parts.  Trying to understand all those complicated parts together is a recipe for disaster.

But if you can do linear regression, each part is just one step up in complexity.  Take one step at a time.

The Type of Model Reflects the Distribution of the Response Variable and the Design

Most statistical models are extensions of linear models (aka. the General Linear Model).  The extensions deal with linear model assumptions that your data don’t meet.

Since most assumptions are about the residuals, whose distribution reflects the measurement of the response variable, these extensions are all for response variables that don’t fit the general linear model.  Our examples above are necessary for censored time-to-event, categorical, and clustered response variables.

The other regression models mostly use maximum likelihood estimation, which requires different measures of model fit.

They also often use link functions, making interpretation of coefficients harder. (Remember, coefficients measure the relationship between the predictor and response, so the link function on the response always affects the scaling of the coefficients).

So the first thing you need to work on is how to implement, interpret coefficients, and understand model fit in the model you’re using.  Don’t worry yet about the tricky effects until you’ve mastered the model you’re using with simple, continuous predictors.

The Tricky Effects are About the Predictor Variables

The nice thing about all these models is that the fixed part of the right hand side of the equation are all the same. This is the part with the regression coefficients and X variables. This part of the model measures and tests the effects you’re interested in.

A dummy variable is a dummy variable in every kind of model.

The random parts will differ, but they’re not directly involved with the effects of predictor variables. (In most models, the only random part is the residuals).

All those tricky effects occur when the predictors aren’t the textbook-perfect numerical variables you used in regression class.  Examples include dummy variables for categorical predictors, interactions and quadratic terms that are the products of two predictors, centered or rescaled predictor variables.

So once you learn how and when to use, and how to interpret any tricky effect in a linear model, you can use it in any type of model.

I generally recommend mastering these effects in the context of linear models. Even if that’s not your immediate need.  Because learning how to work with and interpret the effects of dummy variables is a lot harder if you’re doing it in terms of odd ratios than in terms of comparing means.

So the next time you need to figure out a combination of a tricky effect and a complicated model, break it down first.  Simplify your model as much as you can as you master each part.

This might mean you run some simple preliminary models that you never could publish. That’s okay. Taking the time to understand each part will be worth it.

 

Interpreting Linear Regression Coefficients: A Walk Through Output
Learn the approach for understanding coefficients in that regression as we walk through output of a model that includes numerical and categorical predictors and an interaction.

Tagged With: Cox Regression, dummy coding, interaction, logistic regression, multilevel model, quadratic terms, Survival Analysis

Related Posts

  • Member Training: Types of Regression Models and When to Use Them
  • When NOT to Center a Predictor Variable in Regression
  • Member Training: Goodness of Fit Statistics
  • Interpreting Regression Coefficients in Models other than Ordinary Linear Regression

Reader Interactions

Comments

  1. Claudia says

    July 16, 2020 at 11:45 am

    That was great!
    Thank you very much!

    Reply
  2. Ingo Peters says

    June 13, 2018 at 3:38 am

    This short article on tricky effects was very useful for me and clearified my interpretation of a cox regression with a quadratic term. Thanks!

    Reply
  3. HdS says

    July 22, 2011 at 4:34 am

    Hello,
    Part of the problem is that there are not many publications regarding “tricky” problems. I wanted to do a interaction in a cox regression and where not able to find any good adivce for their interpretation.

    Reply
    • Karen says

      July 22, 2011 at 10:59 am

      Agreed.

      When you can find an example of exactly what you need to do, that’s the clearest and best way to learn.

      So in the absence of that, you just have to break down the problem into different pieces.

      Karen

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Please note that, due to the large number of comments submitted, any questions on problems related to a personal study/project will not be answered. We suggest joining Statistically Speaking, where you have access to a private forum and more resources 24/7.

Primary Sidebar

This Month’s Statistically Speaking Live Training

  • Member Training: Analyzing Pre-Post Data

Upcoming Free Webinars

Poisson and Negative Binomial Regression Models for Count Data

Upcoming Workshops

  • Analyzing Count Data: Poisson, Negative Binomial, and Other Essential Models (Jul 2022)
  • Introduction to Generalized Linear Mixed Models (Jul 2022)

Copyright © 2008–2022 The Analysis Factor, LLC. All rights reserved.
877-272-8096   Contact Us

The Analysis Factor uses cookies to ensure that we give you the best experience of our website. If you continue we assume that you consent to receive cookies on all websites from The Analysis Factor.
Continue Privacy Policy
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT