Hello everyone, I apologize in advance if my questions seem incredibly dull. Trying to teach myself STATA before I get to grad school as someone who's brain is very much not made for handling statistics.
So trying to understand how to perform a logistic regression using Stata. Using this data set from PEW:https://www.pewresearch.org/social-t...panel-wave-68/.
I thought it might be interesting to see if mask wearing can be explained by partisanship, knowledge of health risk (using variables living in a metropolitan area, age, for risk level, and educational level, and how closely they follow the news for knowledge), and income (because I'm thinking this would affect access to resources/masks?).
I recoded my variables of interest into dichotomous variables. And then when I run my models, the Pseudo R2 value seems to imply that with each model, the explanatory power increases, but when I try to check Homer and Lemeshow's fit, my model is super not a good fit. Any tips? Am I setting up this model correctly? Here is my code: https://docs.google.com/document/d/1...iZwftf5VE/edit
Related Posts with Why does my logistic regression model fail the Homer and Lemeshow's test?
snapshot with descriptive names instead of numbersI just upgraded to Stata 16 today and I was experimenting with the new frames feature. This allows a…
How to execute a Matlab script from StataHi all, I'd like to run a Matlab script from within my Stata Do-File. Haven't done this before, but…
Combine multiple columns into oneHi all, If there is a loop like following: Code: forv y = 2009/2012 { forv p = 1/20 { egen `…
How to test for multiple instruments in in etregress or eregressDear all: I am using Stata 15 to run a linear regression with endogenous treatment aiming to do inst…
Adoupdate not working in new installationDear users, I recently installed Stata 15 in a new machine with Windows 10. I first download -ftools…
Subscribe to:
Post Comments (Atom)
0 Response to Why does my logistic regression model fail the Homer and Lemeshow's test?
Post a Comment