Quantile regression and restricted cubic splines are useful for exploring relationships between continuous variables
Related Experiment Video
Updated: Jun 26, 2026

Cutoff Value of Phase Angle by Bioelectrical Impedance Analysis at Admission as a Prognostic Factor in Patients with Acute Heart Failure
Published on: June 10, 2025
Ruth Ann Marrie1, Neal V Dawson, Allan Garland
1Faculty of Medicine, University of Manitoba, Manitoba, Canada.
Objective:
Ordinary least squares (OLS) regression, commonly called linear regression, is often used to assess, or adjust for, the relationship between a continuous independent variable and the mean of a continuous dependent variable, implicitly assuming a linear relationship between them. Linearity may not hold, however, and analyzing the mean of the dependent variable may not capture the full nature of such relationships. Our goal is to demonstrate how combined use of quantile regression and restricted cubic splines (RCS) can reveal the true nature and complexity of relationships between continuous variables.
Study Design And Setting:
We provide a review of methodologic concepts, followed by two examples using real data sets. In the first example, we analyzed the relationship between cognition and disease duration in multiple sclerosis. In the second example, we analyzed the relationship between length of stay (LOS) and severity of illness in the intensive care unit (ICU).
Results:
In both examples, quantile regression showed that the relationship between the variables of interest was heterogeneous. In the second example, RCS uncovered nonlinearity of the relationship between severity of illness and length of stay.
Conclusion:
Together, quantile regression and RCS are a powerful combination for exploring relationships between continuous variables.
Related Concept Videos
Scatter Plot
Residuals and Least-Squares Property
If the observed data point lies above the line, the residual is positive, and the line underestimates the actual data value for y. If the observed data point lies below the line, the residual is negative, and the line overestimates the actual data value for y.
The process of fitting the best-fit...
Survival Tree
Building a Survival Tree
Constructing a survival tree begins...
Correlation and Regression
Outliers and Influential Points
Survival Curves
The Kaplan-Meier estimator is the most common method for constructing survival curves. This...
