---
title: Linearity assessment in multivariate analysis
description: All models usually need that some conditions are respected to be efficient and reliable. Linear regression implied that there is a linear relationship
---

[Skip to content](https://help.easymedstat.com/support/solutions/articles/77000476006-linearity-assessment-in-multivariate-analysis#main-content)

English

Show submenu for translations

![](https://help.easymedstat.com/hs-fs/hubfs/Logo%20EMS%20HQ%20Noir-1.png?width=366&height=70&name=Logo%20EMS%20HQ%20Noir-1.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Open a ticket](https://t3jiy.share-eu1.hsforms.com/2pRawwxfuSS6Scx4Qn4KSPA)

[Open a ticket](https://t3jiy.share-eu1.hsforms.com/2pRawwxfuSS6Scx4Qn4KSPA)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [EasyMedStat Knowledge Base](https://help.easymedstat.com/?hsLang=en)
2. [Statistical analyses](https://help.easymedstat.com/statistical-analyses?hsLang=en)
3. [Multivariate analysis](https://help.easymedstat.com/statistical-analyses?hsLang=en#multivariate-analysis)

# Linearity assessment in multivariate analysis

Linear regression implies that there is a linear relationship (linearity) between the [variable to explain](https://help.easymedstat.com/support/solutions/articles/77000476011-response-variable?hsLang=en) and the numeric [explanatory variables](https://help.easymedstat.com/support/solutions/articles/77000476000-explanatory-variables?hsLang=en). Logistic regression implies that there is a linear relationship (called log-linearity) between the log-odds of the variables to explain and the numeric explanatory variables.

**If these conditions aren't respected, the coefficients computed could be uncertain, that is why it is really important to assess the linearity** of a linear model or the log-linearity of a logistic model before any [interpretation of the results](https://help.easymedstat.com/support/solutions/articles/77000475868-multivariate-analysis?hsLang=en).

# Is the red line generally within the green zone?

## Linear regression

Taking for example the following model: one wants to explain the variable to explain "Numbers of asthma attacks in the last 12 months" by the [explanatory variables](https://help.easymedstat.com/support/solutions/articles/77000476000-explanatory-variables?hsLang=en) "Age", "Sex" (female/male), "Pack year", "Disease-modifying treatments" (yes/no), "Years since diagnosis", "Number of asthma diagnosis in family", "Therapeutic education sessions in the past 6 months" and "Alcohol per day (g/day)".

**YES, it is clearly within the green zone**

Even if the red line is out of the green zone some times, the  relationship is generally linear.        

**![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/m0cx65ATn-QqyfoIWgHm46pAUx7FKsIeyw.png)**

![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/k6xifJLrthNnSTlnJwiA_qAHfW4mFh097g.png)

![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/B0-uQMI4zT4Br9aq_vMwypgEly-z4RRnHw.png)

            

 **NO, it is not within the green zone** 

The variables "Age", "Quality of life score" and "Number of rehabilitation sessions" are clearly non linear as we can see that the red line is quasi never within the green zone.

![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/9XLeJStJtWZCixawun-hiqeHNCEjHtZiiw.png)

![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/Q1IoZ_dImPCfwuCaAk19qAbxUSGAGpNzZA.png)![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/MxxYYbtpYAr2sbDWmX7MSa6D-wV2F6h8sg.png)

**YES, it is within the green zone BUT maybe non-linear ...**

**![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/5Ax3ho0n05bTf4NFMYJqDcplJYPQ38KP_A.png)**

![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/YcgbMW_rsK0_5MEsIJPcUl68Ywp7bg0tkQ.png)

For the variables "Years since diagnosis" and "Number of asthma diagnosis in family", the red line is generally within the green margin, the user can consider them as linear variables. But, we can discuss how there are specific cases that could be treated as non linear variables\*.

*\* For the more experienced researchers*

*There are two special cases : "Years since diagnosis" and "Number of asthma diagnosis in family" are not linear, even if the red line is generally within the green zone. In fact, the point cloud shows that another mathematical relation could better explain the relationship between the variable to explain and the explanatory variable, as a curvilinear relationship for "Years since diagnosis" or polygonal or splines relationship for "Number of asthma diagnosis in family".*

## Logistic

Same principle, the graphics are very similar, the only difference is that there is no scatter plot on them.

**YES, it is clearly within the green zone**

**![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/hv2adhn0n8tdH1GLa90O_aBjJ6YopGPYKg.png)**

**NO, it is not within the green zone**

![](https://help.easymedstat.com/hubfs/Base%20de%20connaissances/gvrJBLrb0EvVc4-vSyhRTgf0gif56VXruw.png)

For more details, see this book:

Garet J., Witten D., Hastie T. and Tibshirani R. An introduction to statistical learning with applications in R. Springer. 2013.  
[https://doi.org/10.1007/978-1-4614-7138-7](https://doi.org/10.1007/978-1-4614-7138-7)

- [Account](https://help.easymedstat.com/account?hsLang=en#main-content)

    - [Account](https://help.easymedstat.com/account?hsLang=en#account)
- [Collect data](https://help.easymedstat.com/collect-data?hsLang=en#main-content)

    - [Questionnaires (ePRO)](https://help.easymedstat.com/collect-data?hsLang=en#questionnaires-epro)
    - [Add and edit patients](https://help.easymedstat.com/collect-data?hsLang=en#add-and-edit-patients)
    - [Randomization](https://help.easymedstat.com/collect-data?hsLang=en#randomization)
    - [Export](https://help.easymedstat.com/collect-data?hsLang=en#export)
    - [Create a series / eCRF](https://help.easymedstat.com/collect-data?hsLang=en#create-a-series-ecrf)
    - [Multilingual studies](https://help.easymedstat.com/collect-data?hsLang=en#multilingual-studies)
- [Variables](https://help.easymedstat.com/variables?hsLang=en#main-content)

    - [Organize in categories](https://help.easymedstat.com/variables?hsLang=en#organize-in-categories)
    - [Dynamic Variables](https://help.easymedstat.com/variables?hsLang=en#dynamic-variables)
    - [Manage variables](https://help.easymedstat.com/variables?hsLang=en#manage-variables)
- [Statistical analyses](https://help.easymedstat.com/statistical-analyses?hsLang=en#main-content)

    - [Statistical tests](https://help.easymedstat.com/statistical-analyses?hsLang=en#statistical-tests)
    - [Compare groups](https://help.easymedstat.com/statistical-analyses?hsLang=en#compare-groups)
    - [Multivariate analysis](https://help.easymedstat.com/statistical-analyses?hsLang=en#multivariate-analysis)
    - [Filter patients](https://help.easymedstat.com/statistical-analyses?hsLang=en#filter-patients)
    - [Descriptive Statistics](https://help.easymedstat.com/statistical-analyses?hsLang=en#descriptive-statistics)
- [Collaborate](https://help.easymedstat.com/collaborate?hsLang=en#main-content)

    - [Share your series](https://help.easymedstat.com/collaborate?hsLang=en#share-your-series)
    - [Manage your organization](https://help.easymedstat.com/collaborate?hsLang=en#manage-your-organization)
- [Monitoring](https://help.easymedstat.com/monitoring?hsLang=en#main-content)

    - [Automations](https://help.easymedstat.com/monitoring?hsLang=en#automations)
    - [Electronic Signatures](https://help.easymedstat.com/monitoring?hsLang=en#electronic-signatures)
    - [Queries](https://help.easymedstat.com/monitoring?hsLang=en#queries)
    - [Clean data](https://help.easymedstat.com/monitoring?hsLang=en#clean-data)

[![](https://help.easymedstat.com/hs-fs/hubfs/Logo%20EMS%20HQ%20Noir-1.png?width=366&height=70&name=Logo%20EMS%20HQ%20Noir-1.png)](http://www.easymedstat.com)

<https://www.linkedin.com/company/easymedstat/> <https://www.youtube.com/@easymedstat9719> [mailto:support@easymedstat.com](mailto:support@easymedstat.com)

Copyright © 2026, EasyMedStat