Biostats test 4 Flashcards
What is binary logistic regression
prediction of a binary-valued DV on the basis of other variables, so response variable is not continuous, but binary-valued, as in:
yes/no, has/does not have, alive/dead, increased/decreased
values of outcome variable
failure (coded 0) or success (coded 1)
success means “has the property”
what do we try to predict with binary logistic regression
the probability of succes (DV = 1) on the outcome variable as a function of covariates: p(success) = f(cov1, cov2, …)
so probability of success is a function of covariates
Assumptions of binary logistic
- categories must be mutually exclusive (no overlap) and collectively exhaustive (all cases can be assigned)
- if so, for all cases, success or failure can be coded in the data
Link function
Similarities of BLR with OLS
- model building and its issues (colinearity, order of entry, influential cases)
Dissimilarities of BLR with OLS
- DV is binary (categorical), not continuous
- Interpretation of coefficients
- Assessment of model fit/quality of obtained model
How do we ensure the [0,1] restircuted outcome range for the predicted values
- link function (logit) is used to relate the linear model part to the outcome variable
- it transforms the predicted values so that the outcomes are restrained to fall in the meaningful 0 to 1 range
- Regression techniques that make use of some kind of link function are called Generalized Linear Models (GLM)
The logit function
- Natural logarithm of odds
- Logit = ln(odds) = ln(y hat/1-y hat)
The logistic regression model when combined with the logit (link) function
ln(y hat/1-y hat) = b0 + b1X1 + b2X2 + …
So the difference with OLS model is on the dependent variable side of the model
In OLS, rather than looking at the B coefficients themsleves, we look at
- ODDS RATIO = e to the bower of b, where e is the base of natural log ln
- change in the odds (of success) for a one-unit change in the predictor
Wald test
Gives the p-value of the odds ratio
Under H0, odds ration is
- Odds ratio = 1
Multiplicative effect
The combined effect of predictors on the DV is a product of separate effects, so the effects of odds ratios multiply in binary logistic regression, while they add up in ordinary linear regression
From probabilities to classification - what is classification of cases based on?
The predicted probabilities for success. The default setting for classification as ‘success’ is a predicted probability for success > .50.