Hello! I am attempting to test the logit regression assumption that independent variables will have a linear relationship to the logit of the dependent. As I understand it, the code to test this would be the following: gen logitdependent= logit(dependent) twoway (scatter logitdependent independent) From the following, you would be able to at least visually see a linear (or not) relationship. However, my use of logit(dependent) creates a variable with no observations and thus nothing to plot. If I use a log(dependent) function, my variable has observations and depicts a scatter plot. I'm wondering if a. This is the best or appropriate code or manner of testing this assumption and b. if so, why is the logit function seemingly eliminating my observations? As I am relatively new to stata and logistic regression, I apologize for any simply oversights I may have displayed here. Thanks, Matt
-
Login or Register
- Log in with
Comment