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?
mi impute chained trace plotsHi all, I am running the command mi impute chained (regress) x y z = a b c, add (10) burnin (100) r…
Cannot Load Files for Table of Graphs Due to r(170) errorHello all: I am attempting to create a table of graphs, but I am having issues loading the files wi…
Help on fixed effectsDear all, I'd need some advice on how to deal with fixed effects. I am currently working on a cross…
Help needed: creating flag to Identify at least 3 consecutive years of data (without discarding other cases)Dear Sir/Madam I have a panel dataset (each company has one or multiple years of data, but there ar…
How does Stata deal with multicollinear variables?Dear All, I make up this data set. Code: * Example generated by -dataex-. For more info, type help …
Subscribe to:
Post Comments (Atom)
0 Response to Why does my logistic regression model fail the Homer and Lemeshow's test?
Post a Comment