This markdown follows along the logistic regression lecture presented in a linear models class and provides two examples to demonstrate the models and their interpretation.
This lab follows along the logistic regression lecture presented in class and provides two examples to demonstrate the models and their interpretation.
What is Binary Logistic Regression?
It is a regression with an outcomevariable (or dependent variable) that is dichotomous/binary (i.e., only two categories, such as Yes or No, 0 or 1, Disorder or No Disorder, Win or Lose).
This examples comes from a tutorial paper on mediation found
here.
This is an open source paper that shared the data set used in this example.
The following is code and interpretation are based on this paper.
Note that they use a different package to estimate the model and you will see that our estimates are very close, though not exact.
When the research hypotheses state that different categories, or levels of another variable, may have differing responses to other independent variables, we need to use interaction terms
- Also called moderation
Example: The relationship between discrimination and grades depends on prog.
Suppose you are doing a simple study on weight loss and notice that people who spend more time exercising lose more weight.
Upon further analysis you notice that those who spend the same amount of time exercising lose more weight if they are more effortful.
The more effort people put into their workouts, the less time they need to spend exercising.
This is popular in workouts like high intensity interval training (HIIT).
The data sets used in this lab are used in Chapter 4 of Tabachnick & Fidell (2012; I believe there is a new version from 2019 now).
The chapter is provided in GauchoSpace and is a useful resource if you need more information on how to clean and screen your data and write up the results.