MAP 716 Lecture 5 Multiple Regression
MAP 716 Lecture 5 Multiple Regression
Lecture 5: Multiple Regression • Simple linear regression describe the linear relation
between a response variable Y and a single explanatory
variable X
Dr Alice Lakati, PhD • Multiple regression is an extension to the case of one
Senior Lecturer
Amref International University
response variable and two more explanatory variables
• In multiple linear regression a linear model is fitted for
the response variable, which is expressed as a linear
combination of the predictors
• Y’=b0 + b1x1 + b2x2 +…….bkxk
1
5/23/2023
MR
Regression coefficients- SLR
Suppose we now want to assess whether age (a continuous variable, measured in
Independent Regression Coefficient T P value
years), male gender (yes/no), and treatment for hypertension (yes/no) are potential
variable
confounders, and if so, appropriately account for these using multiple regression
Intercept 108.28 62.61 0.0001 (ANCOVA) analysis. For analytic purposes, treatment for hypertension is coded as
BMI 0.67 11.06 0.0001 1=yes and 0=no. Gender is coded as 1=male and 0=female (indicator variables )
Indicator variables MR
• Independent variables can be qualitative e,g
gender (M/F), income group.
The multiple regression model is:
• Indicator or dummy variables are used to = 68.15 + 0.58 (BMI) + 0.65 (Age) + 0.94 (Male gender) + 6.44
quantify the effects of the levels or classes of (Treatment for hypertension).
a qualitative variable
• Take note that the association between BMI and
• If a qualitative variable has k levels, then K-1 systolic blood pressure is smaller (0.58 versus 0.67)
indicator variables will be created to after adjustment for age, gender and treatment for
hypertension.
represent that variable • BMI remains statistically significantly associated with
• An indicator variable has the form 1- if systolic blood pressure (p=0.0001), but the magnitude
of the association is lower after adjustment.
characteristic occurs and 0 if otherwise • The regression coefficient decreases by 13%.
2
5/23/2023
Interpretation of regression
MR coefficients
• In this case the true "beginning value" was 0.58,
and confounding caused it to appear to be 0.67. so • A one unit increase in BMI is associated with a 0.58 unit
the actual % change = 0.09/0.58 = 15.5%. increase in systolic blood pressure holding age, gender
and treatment for hypertension constant.
• Using the rule (i.e., a change in the coefficient in either • Each additional year of age is associated with a 0.65 unit
direction by 10% or more), we meet the criteria for increase in systolic blood pressure, holding BMI, gender
confounding.
and treatment for hypertension constant.
• Thus, part of the association between BMI and systolic
blood pressure is explained by age, gender and • Men have higher systolic blood pressures, by
treatment for hypertension approximately 0.94 units, holding BMI, age and
• It important to gender in the model even though it is treatment for hypertension constant and persons on
not significant treatment for hypertension have higher systolic blood
pressures, by approximately 6.44 units, holding BMI,
age and gender constant.
Interpretations :
Interpretations..
We can estimate the blood pressure of a 50 year old male, with a BMI of
25 who is not on treatment for hypertension as follows:
• The multiple regression equation can be used to
estimate systolic blood pressures as a function of a
participant's BMI, age, gender and treatment for
hypertension status.
Total N-1
3
5/23/2023
4
5/23/2023
5
5/23/2023
Advantages of fitting MR
Interactions example..
• The least squares estimates of β= (βO β 1 β 2 β 3) = 1. Since both type of patients assume equal
βo= -15.88, β1=1.734, β2 =7.911, β3=-0.245. slopes and the same error variance, the
common slope B1 can best be estimated by
• Suppose someone is 40 years old and has had pooling all the patients together
two previous admissions, determine the LOS.
2. Comparing different levels of qualitative
variables can be done by tests on regression
• 49.702 days coefficient B2
• 53.09 days 3. Inferences on Bo and B2 can be made more
• 69.057 days precisely since more degrees of freedom will
be associated with MSE
• 50.103 days
Interactions can be introduced into the model