LEC 12 Simple & Multiple Logistic Regression Flashcards
When to do logistic regression?
Nominal (dichotomous) variables (dependent variable)
2 types of logistic regressions
- Simple logistic regression
- 1 independent variable - Multiple logistic regression
- >=2 independent variables
Simple logistic regression model equation
& Odds ratio equation
loge(odds of outcome) = alpha + beta(x)
odds ratio (OR) = e^beta
Multiple logistic regression model equation
& Odds ratio equation
loge(odds of outcome) = alpha + beta(xi) + …
odds ratio (OR) = e^beta(i) after controlling for all other independent variables
Range of values of OR
0 - infinity
Simple logistic regression
- to test null hypothesis __
To test the null hypothesis that there is no association between the independent variable and the dependent variable
Multiple logistic regression
- to test null hypothesis __
To test the null hypothesis that there is no association between the independent variable(xi) and the dependent variable, after controlling for all other independent variables
Odds ratio calculation for cross-product ratio
= (no. of events or outcome)/(no. of no events or outcome)
= ad/bc
no. of events or outcome = a/c
no. of no events or outcome = b/d
Simple logistic regression assumptions (3)
- The dependent variable should be a dichotomous variable (2 categories only)
- The observations are independent of one another
- There is a linear relationship between the independent variable and the loge(odds of outcome)
- scatter plot to predict
Multiple logistic regression assumptions (4)
- The dependent variable should be a dichotomous variable (2 categories only)
- The observations are independent of one another
- There is a linear relationship between the independent variable and the loge(odds of outcome)
- scatter plot to predict - There is little or no multicollinearity among the independent variables / independent variables should not be too highly correlated with each other
eg weight and BMI
OR = 1
- no association between exposure and outcome
OR >1
- positive association between exposure and outcome (_ times more)
OR<1
- inverse association between exposure and outcome (_% reduction)
Simple logistic regression hypothesis
Ho : OR = 1
H1 : OR =/ 1 or OR<1 or OR>1
Multiple logistic regression hypothesis
Ho : ORi = 1
H1 : ORi =/ 1 or ORi<1 or ORi>1