CP2403 - Module 9

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 26

Module 9

Logistical Regression
Summary of Module 8
• Multiple Regression
• Polynomial Regression
• Multiple & Polynomial Regression
• Evaluating model
Learning outcome – Module 9

By the end of Module 9, you should be able to


• Perform regression and interpret the results when the explanatory
variable is a categorical variable and the response variable is a
quantitative variable
• Perform logistical regression and interpret the results when the
response variable is a categorical variable
Topics covered in Module 9
• Regression when the explanatory variable is categorical
• Logistical Regression
Regression
Categorical Explanatory variable
Quantitative Response variable

Nicotine No of cigarette
Dependence smoked
(X) (Y)
(Categorical) (Quantitative)
Output

No of Cigarette Smoked = 232.96 + 165.58*TAB12MDX


Output
No of Cigarette Smoked = 232.96 + 165.58*TAB12MDX
• If someone is addicted to nicotine, TAB12MDX = 1
• No of Cigarette Smoked = 232.96 + 165.58*(1) = 398.54
• If someone is not addicted to nicotine, TAB12MDX = 0
• No of Cigarette Smoked = 232.96 + 165.58*(0) = 232.96
• Conclusion: Young adults who are addicted to nicotine will smoke
about 166 more cigarettes than those who are not addicted
Logistical regression
• If response variable is quantitative
• Multiple regression
• If response variable is categorical
• Logistical regression
Example 1

Social Nicotine
Phobia Dependence
(X) (Y)
(Categorical) (Categorical)
TAB12MDX = 0.38 + 1.23 * SOCPDLIFE
TAB12MDX = 0.38 + 1.23 * SOCPDLIFE
If SOCPDLIFE = 1
TAB12MDX = 0.38 + 1.23 (1) = 1.61

If SOCPDLIFE = 0
TAB12MDX = 0.38 + 1.23 (0) = 0.38

What does this mean if nicotine dependence is binary value (0/1)


How do we use the above equation?
We don’t, we use odds ratio
Odds Ratio (OR)
• 0 -> ∞

• OR = 1
• Those with social phobia are just as likely to be nicotine dependent as
people without social phobia
• Statistically insignificant
Odds Ratio (OR)
• 0 -> ∞

• OR > 1
• Those with social phobia are more likely to be nicotine dependent as
people without social phobia
• Explanatory variable increases
Odds Ratio (OR)
• 0 -> ∞

• OR < 1
• Those with social phobia are less likely to be nicotine dependent as
people without social phobia
• Explanatory variable decreases
Conclusion

Young people with social phobia are 3.43 times more like to be nicotine
dependent compare do young people without social phobia

confidence interval
- 1.78 – 6.61 (95% of the time)
Example 2
Major
Depression

Social Nicotine
Phobia Dependence
(X) (Y)
(Categorical) (Categorical)
TAB12MDX = 0.0939 + 0.8393(SOCPDLIFE) + 1.3072(MAJORDEPLIFE)
TAB12MDX = 0.0939 + 2.31(SOCPDLIFE) + 1.3072(MAJORDEPLIFE)

IF SOCPDLIFE = 0, MAJORDEPLIFE = 0
TAB12MDX = 0.0939

IF SOCPDLIFE = 1, MAJORDEPLIFE = 0
TAB12MDX = 0.0939 + 0.8393 = 0.9332

IF SOCPDLIFE = 0, MAJORDEPLIFE = 1
TAB12MDX = 0.0939 + 1.3072 = 1.4011

IF SOCPDLIFE = 1, MAJORDEPLIFE = 1
TAB12MDX = 0.0939 + 0.8393 + 1.3072 = 2.2404
Conclusion:
Young people with social phobia are 2.31 times more like to be nicotine dependent
compare do young people without social phobia, after controlling for major
depression

Young people with major depression are 3.70 times more like to be nicotine
dependent compare do young people without major depression, after controlling for
social phobia
Example 3

Panic Nicotine
Disorder Dependence
(X) (Y)
(Categorical) (Categorical)
Conclusion
Young people with panic disorder are 1.56 times more like to be
nicotine dependent compare do young people without panic disorder
Example 4
Major
Depression

Panic Nicotine
Disorder Dependence
(X) (Y)
(Categorical) (Categorical)
Conclusion
Young people with major depression are 3.88 times more like to be nicotine dependent
compare do young people without major depression, after controlling for panic disorder

Young people with panic disorder are 1.05 more like to be nicotine dependent compare do
young people without panic disorder, after controlling for major depression
Summary of Module 9
• Regression when the explanatory variable is categorical
• Logistical Regression
Prac 9 Overview

You might also like