# Multiple Linear Regression

## Accounting for Multiple Simultaneous Determinants of a Continuous Dependent Variable

## Jump to

In many cardiovascular experiments and observational studies, multiple variables are measured and then analyzed and interpreted to provide biomedical insights. When these data lend themselves to analyzing the association of a continuous dependent (or response) variable to 2 or more independent (or predictor) variables, multiple regression methods are appropriate. Multiple regression differs from ANOVA, in which the predictors are represented as “factors” with multiple discrete “levels.” In this report, we focus on multiple regression to analyze data sets in which the response variable is continuous; other methods, such as logistic regression and proportional hazards regression, are useful in cases in which the response variable is discrete.^{1}

Although many studies are designed to explore the simultaneous contributions of multiple predictors to an observed response, the data are often analyzed by relating each of the predictor variables, 1 at a time, to a single response variable with the use of a series of simple linear regressions. However, although 2-dimensional data plots and separate simple regressions are easy to visualize and interpret, multiple regression analysis is the preferred statistical method.^{1–5} We want to reach correct conclusions not only about which predictors are important and the size of their effects but also about the structure by which multiple predictors simultaneously relate to the response. Often, we also want to know whether the multiple predictors that influence a response or outcome do so independently or whether they interact.^{6} Finally, although only 1 or 2 predictors may interest us, our analysis often must adjust for other influences (ie, confounding effects).

A series of simple regressions cannot accomplish these tasks; if we want to examine the simultaneous effects of multiple predictors on a response, we must use a method that treats them accordingly. Conducting a series of simple regression analyses when multiple regression analysis is called for may lead to erroneous conclusions about the contribution of each of multiple predictor variables because this approach does not account for their simultaneous contributions. As a result, a predictor may be deemed important when it is not, or, conversely, a predictor may appear unrelated to the response when examined alone but relate strongly when considered simultaneously with other predictors.

## From Simple Linear Regression to Multiple Regression

Simple linear regression involves estimating the straight line equation

where Ŷ is the predicted value of the response variable, Y, at a given value of the predictor variable, X. The intercept, b_{0}, estimates the value of the response when the predictor is 0, and the slope, b_{1}, estimates the average change in the response for a unit change in the predictor. The “best” estimate for this line is the one that minimizes the sum (denoted by the Greek letter Σ) of squared residuals, SS_{res}, between the observed values of Y and the values of Ŷ predicted from Equation 1 across the corresponding values of X (thus, this is called ordinary least squares regression): equation

The question immediately arises whether the relationship between X and Y is “statistically significant,” in other words, whether knowing the value of X allows predicting Y better than just knowing the mean value of Y or, equivalently, whether the slope of the regression line for the underlying population is different from 0. To test the “null hypothesis” that this slope is 0, we compare the magnitude of the statistic b_{1} to the precision with which it is estimated, its standard error, s_{b1}. A smaller standard error indicates higher certainty in the value of the estimate. We use this information to compute a *t* statistic equation

t_{b1} will be large if b_{1} is large compared with s_{b1}. If t_{b1} (with n−2 degrees of freedom; n is the number of observations) exceeds the maximum expected under the null hypothesis of no relationship between Y and X, we conclude that the slope is significantly different from 0, meaning that knowing X contributes to our ability to predict Y.

This approach generalizes directly to multiple predictor variables. For example, the simplest multiple regression equation relates a single continuous response variable, Y, to 2 continuous predictor variables, X_{1} and X_{2}: equation

where Ŷ is the value of the response predicted to lie on the best-fit regression plane (the multidimensional generalization of a line). The intercept, b_{0}, is the plane’s reference position; it defines the value of Y when both X_{1} and X_{2}=0. The regression coefficient b_{1} quantifies the sensitivity of Y to change in X_{1}, adjusting for the effect of X_{2} on Y. Similarly, b_{2} quantifies the sensitivity of Y to change in X_{2}, adjusting for the effect of X_{1} on Y.

As in simple linear regression, we evaluate whether individual predictors affect the response using *t* tests; for each regression coefficient b_{j} we compute equation

t_{bj} will be large if the magnitude of b_{j} is large compared with the precision with which it is estimated, s_{bj}. If t_{bj} (with n−k−1 degrees of freedom, where k is the number of predictor variables) exceeds the maximum value expected under the null hypothesis of no relationship between Y and X_{j}, we conclude that X_{j} contributes significantly to the observed response in Y, adjusting for the effects of the other predictor variables.

## An Example: Ice Cream Consumption

Diet contributes to cardiovascular risk, and therefore we may want to identify significant determinants of the consumption of certain foods. For example, Figure 1 shows data from a study of the determinants of ice cream consumption^{7} in which we want to relate consumption (C, pints per person) to both mean outdoor temperature (T, °F) and weekly family income (I, $).

First, we separately examine the linear relationships between consumption and temperature and between consumption and income using simple regressions. For the former (Figure 1A), we estimate equation

s_{bT}=0.0005 and t_{bT}=0.0031/0.0005=6.502, which (with 30–2=28 degrees of freedom) yields *P*<0.001. Thus, we conclude that for each 1°F rise in outdoor temperature, ice cream consumption increases, on the average, by 0.0031 pints per person, consistent with our visual impression of the data.

In contrast, simple regression of C on I suggests that ice cream consumption is not significantly associated with family income, as shown below, equation

because s_{bI}=0.002 and t_{bI}=0.0005/0.002=0.25, yielding *P*=0.8. Thus, we conclude that Equation 7 is no better explanation of the observed ice cream consumption than no fit at all, consistent with our visual impression of the data (Figure 1B).

On the basis of these separate analyses, we conclude that ice cream consumption increases as outdoor temperature increases but is not influenced by family income. Each of these separate analyses, however, assumes that no other important predictors of ice cream consumption are present to confound each analysis. In most studies, this situation will not be the case.

Now, we use multiple regression to estimate the simultaneous effects of T and I on C, equation

The Table shows the results of a computer program used to fit this equation to the data, yielding equation

Figure 2 represents this regression equation as a plane fit through the data (the data points are not plotted). Comparing the 2 separate simple regression results (Equations 6 and 7) with that of the multiple regression (Equation 9), we see that the estimates of b_{T}, quantifying the temperature effect, differ only slightly (0.0031 in Equation 6 versus 0.0035 in Equation 9), whereas the estimates of b_{I}, quantifying the income effect, differ by an order of magnitude (0.0005 in Equation 7 versus 0.0035 in Equation 9). From the fit of Equation 9, we estimate s_{bT}=0.0004 pints/person/°F and s_{bI}=0.0012 pints/person/$/week, and therefore t_{bT}=7.963 (*P*<0.001) and t_{bI}=3.017 (*P*<0.01). In contrast to the conclusions we drew from separate simple regressions, we now conclude that ice cream consumption, C, is significantly associated with both outdoor temperature, T, and family income, I. Ice cream consumption increases as outdoor temperature increases (b_{T} is positive), and, independently, after adjustment for temperature, ice cream consumption also increases as family income increases (b_{I} is positive).

With simultaneous consideration of both predictors, the multiple regression analysis is more revealing because, after adjustment for the association between T and C, it identifies an association between I and C that was masked in the separate simple regressions.

In summary, multiple linear regression and the associated statistics, b_{j}, s_{bj}, and t_{bj}, allow us to judge the magnitude and quality of the relationship between a response variable, Y, and 2 or more predictors, X_{1}, X_{2}, …, X_{k}. Using the individual t_{bj}, we also make inferences about the statistical significance of each predictor, adjusting for the effects of the other predictors. These inferences and judgments are made under the assumption that the regression equation correctly specifies the true relationship among these variables; that is, Y is related linearly to the X_{j}, and Y is related only to the predictors, X_{1}, X_{2}, …, X_{k}, included in the equation. We further assume that the residuals are normally distributed and have equal variance across the predictor data space. Interpreting a multiple regression analysis thus requires careful examination of other aspects of the character of the fit and the relationship among variables to evaluate these assumptions.

## Caveats and Considerations

### Linearity

The multiple regression equation (Equation 4) estimates the additive effects of X_{1} and X_{2} on the response. It further specifies that each predictor is related linearly to the response through its regression coefficient, b_{1} and b_{2} (ie, the “slopes”). In simple linear regression, one can assess linearity by looking at a plot of the data points. In multiple regression, one can examine scatterplots of Y and of residuals versus the individual predictor variables. If a nonlinearity appears, one may be able to incorporate into the model an appropriate linearizing transform^{1} or use nonlinear regression.^{1,8}

### Model Misspecification Bias

If the form of the regression equation is not correct (such as when substantial nonlinearities are ignored) or important predictor variables are left out of the equation, the estimates of those regression coefficients that are included in the equation will be biased. This situation occurred in our example: Excluding temperature as a predictor of ice cream consumption changed the estimate of the regression coefficient for the effect of family income by an order of magnitude (b_{I}=0.0005 in Equation 7 versus 0.0035 in Equation 9). Similarly, if we incorrectly specify the nature of the relationship between predictor variables (eg, additive versus interactive effects) or between the response and a predictor (eg, linear versus nonlinear relationships), we will bias the estimated regression coefficients. The magnitude of these biases will vary from problem to problem, and it is impossible to know with certainty that no model misspecification biases exist. One must guard against bias by systematically examining all data that were collected and applying sound judgment based on one’s knowledge of the basic and clinical science underpinning the study, more often than not using multiple regression instead of simple regression.

### Normality and Equal Variance

Multiple regression assumes that the residuals are normally distributed and have equal variance across the predictor data space. These assumptions are typically evaluated with the use of graphical methods and related statistics to assess the residuals.^{1–5,9} If these assumptions do not hold, the response variable can sometimes be transformed so that the assumptions will hold for the transformed data,^{1,9} although this approach is subject to the caveat that interpretations are now, strictly speaking, made with respect to transformed data. Alternatively, robust regression methods,^{9} bootstrap methods,^{10} or the mixed-effects regression method discussed below can be used to estimate regression parameters and their standard errors.

### Multicollinearity

Each regression coefficient attempts to quantify the independent effect of the corresponding predictor on the response. However, when the multiple predictor variables are correlated with each other, which is often the case when dealing with biological or clinical data, this will not be the case. Correlation between the predictor variables reduces the precision of the estimates of the individual regression coefficients and therefore “inflates” the associated standard errors, s_{bj}. Another way to think of this is that high correlation among predictor variables means that we use redundant information to predict the response; as a consequence, we are less certain of the independent effect of any 1 predictor. This problem is called *multicollinearity*^{1} and should be of concern if the correlation between a pair of predictor variables is above about 0.9; depending on the specific data set and regression equation, multicollinearity might be an important consideration even with weaker correlations. Several diagnostics, including the so-called variance inflation factor, can be used to more fully evaluate multicollinearities, especially those arising in more complex models.^{1,4,11} Severe multicollinearity can paradoxically yield a significant overall regression model fit in which none of the individual regression coefficients, b_{j}, are significant (because of the “inflation” of the s_{bj}) and, in the extreme, can yield nonsensical estimates of 1 or more of the b_{j}.

Numerous ad hoc statistical approaches to dealing with multicollinearity are available.^{1,4,12,13} However, sometimes you simply have to drop 1 or more of the “redundant” variables from the regression equation. Alternatively, to the extent that one can experimentally manipulate variables, multicollinearity can sometimes be mitigated with careful experimental design to reduce the correlation among predictor variables.^{1,13}

### Influential Data Points

An observation may be “unusual” in that it has an extreme location in the data space, as judged in relation to the location of the bulk of the other observations. These unusual observations may heavily influence the magnitude of the estimate of 1 or more of the regression coefficients, b_{j}. These points are called *outliers* if their location is unusual in the direction of the response variable (ie, unusually high or low values of Y) or *leverage points* if their location is unusual in the direction of a predictor variable (ie, unusually high or low values of X_{j}). Examining scatterplots of data will help to identify such points. In addition, formal “regression diagnostics,” such as Cook’s distance, the diagonal values of the “hat matrix,” and Studentized residuals have been developed to help identify unusual observations and quantify their potential influence.^{1,4,5,9,11} Although these diagnostic statistics can help to identify influential observations, particularly in multiple regression analyses in which neither the observations nor their effect can be easily visualized in the multivariate data space, they cannot tell us what to do. In many cases, these influential observations result from simple data entry errors, such as transpositions, and are easily corrected. In other cases, the influential observations reflect a problem of model misspecification, such as ignoring nonlinearity, and correcting the misspecification will reduce their influence. Accordingly, one should not use regression diagnostics to justify excluding otherwise valid observations from analysis simply to avoid their influence. On the other hand, influential observations can lead to erroneous results, and therefore their presence and effect should be evaluated and understood.

## Extensions of Multiple Linear Regression

Beyond simple extension of multiple regression to include additional continuous predictor variables, numerous other useful extensions to the basic procedure are available.

### Variable Selection

Several procedures, known collectively as variable selection methods, have been developed to select a “best” multiple regression model that includes a subset of predictor variables drawn from a larger pool of candidate predictors.^{1,3,4,14} Most of these techniques are based on incremental changes in SS_{res} (Equation 2) as predictor variables are (1) added sequentially to a model, starting from nothing (forward selection); (2) subtracted sequentially from a model, starting with all candidates included (backward elimination); or (3) more commonly, selected by stepwise regression, a strategy that proceeds as with forward selection, but each time a variable is added a backward elimination step occurs to test whether any variables entered previously can be removed. These techniques can be useful adjuncts in a multipronged strategy to identify an appropriate multiple linear regression model; they allow examination of many possible regression models to look for consistency of model identification with the use of multiple methods. It is important, however, to avoid rote application of these methods, particularly for large data sets containing many possible predictor variables in which multicollinearity may be a problem. Severe multicollinearity will play havoc with the order of selection or elimination of variables with the use of these methods, and one must be cautious in inferring relative importance of predictors on the basis of their order of selection.

### Interactions Among Predictor Variables

The 2-predictor multiple regression equation (Equation 4) specifies that predictors X_{1} and X_{2} are additive in their respective effects. Often, however, 2 or more predictor variables interact (ie, synergize or compete) to determine a response. Indeed, determining whether effects are additive or not is often the reason for conducting a study, and one may therefore wish to explore whether 2 predictors interact (ie, are not simply additive) in their relation to the response. The simplest interaction between 2 predictors is introduced into a multiple regression equation through the product of the 2 variables.^{1–3} For example, if we wish to express an interaction between predictors X_{1} and X_{2} in Equation 4, we use equation

If the regression coefficient, b_{3}, is statistically significant, then we have evidence that the relationship between Y and X_{1} depends on the value of X_{2} (or vice versa, depending on how we view the underlying biology).

This basic concept can be generalized to more complicated interaction models. However, this must be done thoughtfully. Introducing several product terms into a complex multiple regression problem, particularly if the expanded set of predictors is then subjected to variable selection methods, can yield misleading results. In addition, product terms will highly correlate with each of the variables used to create the product, artificially introducing multicollinearity.

### Categorical Predictor Variables

We have shown how to relate a continuous response variable, Y, to multiple continuous predictor variables, such as X_{1} and X_{2}. Often, however, we may want to also include predictor variables that are categorical, such as gender, ethnicity, or treatment group. It is possible to do so by including in the regression equation a set of “dummy” (or “indicator”) variables that take on values of 0, 1, or −1 to represent the levels of categorical information. The simplest example is a variable that has only 2 categories, such as chocolate and vanilla. If our focus, for example, is on the difference in consumption of chocolate ice cream with reference to vanilla, we create a dummy variable F (for flavor) defined as 0 if vanilla and 1 if chocolate (this is called *reference coding*; the reference group is coded with 0). To introduce this into our analysis and determine whether ice cream consumption differs for vanilla and chocolate flavors, we add F to the regression equation, equation

b_{F} quantifies the average difference in chocolate ice cream consumption with reference to vanilla, after adjustment for the effects of temperature and income; computing t_{bF} allows us to judge whether this effect is statistically significant. Alternatively, we could conduct the same analysis by defining F=1 if vanilla and −1 if chocolate, which is often called *effects coding*. With this coding, b_{F} quantifies the deviation of the response for chocolate and vanilla from the average of both chocolate and vanilla. For simple problems, reference (1, 0) coding is often more straightforward to interpret. For more complicated problems, the choice of coding will depend on many factors that are beyond the scope of this review. This dummy variable method generalizes to cases in which the factor of interest has more than 2 levels by creating a set of dummy variables totaling 1 fewer than the number of levels of the factor.^{1–3}

### Repeated Measurements Within the Same Subjects

Sometimes repeated measurements are made within individual subjects to establish a relationship between 2 or more variables in each of multiple subjects, and then these multiple relationships are pooled into 1 data set.^{15,16} If the regression analysis does not account for the different subjects, both the estimates of the regression coefficients, b_{j}, and the estimates of error, including the s_{bj}, will be biased and could be in error.

Consider, for example, the data shown in Figure 3, in which response, Y, and predictor, X, were measured in 6 subjects. If we use simple regression to fit the pooled data with the use of Equation 1, ignoring the subjects, we estimate b_{X}=+2.16 with s_{bX}=0.478. Computing t_{bX} leads to the conclusion that a significant positive relationship exists between Y and X (*P*<0.001; Figure 3A).

The data, however, suggest the opposite, a relationship with a negative slope when considered within each subject. In effect, the model is misspecified by excluding the subjects, and bias is introduced because the relative location of each subject’s response is ignored.

A simple (but, as we will see, usually unsatisfactory) approach to account for variation from subject to subject is to represent the subjects by a adding a set of dummy variables to the regression equation.^{1,15,16} For example, for these 6 subjects, we define a set of 5 dummy variables using effects coding, S_{i}=1 if subject i (i=1 to 5), −1 if subject 6, 0 otherwise, and write equation

Where the sum (Σ) is from 1 to 5.^{1} We estimate b_{X}=−3.05 with s_{bx}=0.118 (*P*<0.001; Figure 3B). Thus, after accounting for the different lines within each of the subjects, we now find a negative slope (with a smaller standard error), which much better describes the relationship within individual subjects. Note that Equation 12 estimates b_{X} assuming that a common slope is present across all subjects, which may or may not be appropriate depending on the specific problem (interactions can be introduced to allow each subject’s line to have its own slope).

Accounting for subject variability in this way and estimating regression coefficients and standard errors by ordinary least squares regression treats the subjects as a fixed effect, with “fixed” meaning that these individuals are the only “levels” of the factor (subjects) of interest, which constrains statistical inference to only the specific subjects studied. Most of the time, however, we want to make statistical inferences that extrapolate to an entire population on the basis of data collected in our sample of subjects; to do so correctly, we must treat the subjects as a random effect (ie, as a random sample of the population of interest). A common way to do this is with mixed-effects regression,^{17,18} where “mixed” refers to the inclusion of both random and fixed effects. Although it is beyond the scope of this review to delve into details (another article in this series will address this topic in the context of longitudinal analysis), we reestimated this example using a mixed-effect regression; b_{X}=−3.04 with s_{bx}=0.118, which are nearly identical to those obtained above. If we turn our attention to b_{0}, however, we see that although the estimates of b_{0} are similar (66.78 versus 66.68), s_{b0} is much larger in the mixed-model result (10.14 versus 1.23 with the use of ordinary least squares). This mixed-model regression approach is usually necessary to correctly estimate uncertainty when repeated observations exist within subjects.

## Summary

More often than not, when one’s impulse is to conduct a series of separate simple regressions involving the same response variable, multiple regression should be used instead. The flexibility of multiple regression allows elegant, insightful, and often the only correct analysis. Simple nonlinearities and interaction effects can be introduced to extend the utility of this method well beyond that of simple regression. As with any multivariate statistical technique, however, it is possible to make substantial errors if the method is applied blindly without appropriate consideration of the underlying assumptions, correlations among predictors, influential observations, and thoughtful exploration of model structure.

## Acknowledgments

**Disclosures**

None.

## References

- ↵
Glantz SA, Slinker BK. Primer of Applied Regression and Analysis of Variance. 2nd ed. New York, NY: McGraw-Hill; 2000.
- ↵
Kleinbaum DG, Kupper LL, Muller KE, Nizam A. Applied Regression Analysis and Multivariable Methods. 3rd ed. Boston, Mass: Duxbury Press; 1997.
- ↵
Kutner MH, Nachtsheim CJ, Neter J, Li W. Applied Linear Statistical Models. 5th ed. New York, NY: McGraw-Hill; 2004.
- ↵
Myers RH. Classical and Modern Regression with Applications. 2nd ed. Boston, Mass: Duxbury Press; 1990.
- ↵
Weisberg S. Applied Linear Regression. 3rd ed. New York, NY: John Wiley & Sons Inc; 2005.
- ↵
- ↵
- ↵
Ratkowsky DA. Handbook of Nonlinear Regression Models. New York, NY: Marcel Dekker; 1990.
- ↵
Montgomery DC, Peck EA, Vining GG. Introduction to Linear Regression Analysis. 3rd ed. New York, NY: John Wiley & Sons Inc; 2001.
- ↵
Chernick MR. Bootstrap Methods: A Practitioner’s Guide. New York, NY: John Wiley & Sons Inc; 1999.
- ↵
Belsley DA, Kuh E, Welsch RE. Regression Diagnostics: Identifying Influential Data and Sources of Collinearity. New York, NY: John Wiley & Sons Inc; 1980.
- ↵
- ↵
- ↵
- ↵
Slinker BK, Wu Y, Brennan AJ, Campbell KB, Harding JW. Angiotensin IV has mixed effects on cardiac function and speeds relaxation. Cardiovasc Res
*.*1999; 42: 660–669. - ↵
Peng J, Raddatz K, Molkentin JD, Wu Y, Labeit S, Granzier H, Gotthardt M. Cardiac hypertrophy and reduced contractility in hearts deficient in the titin kinase region. Circulation
*.*2007; 115: 743–751. - ↵
Feldman HA. Families of lines: random effects in linear regression analysis. J Appl Physiol
*.*1988; 64: 1721–1732. - ↵
Hedeker D, Gibbons RD. Longitudinal Data Analysis. New York, NY: John Wiley & Sons Inc; 2006.

## This Issue

## Jump to

## Article Tools

- Multiple Linear RegressionBryan K. Slinker and Stanton A. GlantzCirculation. 2008;117:1732-1737, originally published March 31, 2008https://doi.org/10.1161/CIRCULATIONAHA.106.654376
## Citation Manager Formats