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?
Problem in duplicate case using HIES 2018-19My data has duplicate cases, I want to remove duplicate case if they report '2' as response in varia…
longitudinal analysis with measurements taken at different timesdear stata users, I'm dealing with a longitudinal dataset with measurements taken in different time…
Retaining the 5 closest matches when matching firms using -rangejoin-Hi I have a matched panel data set of treated and control firms, matched on industry (sic2), and 50…
Bootstrap Maximum Likelihood Estimation_ time-seriesDear Statalist users, I would like to conduct a bootstrap maximum likelihood to estimate a linear t…
test Code: . xtnbreg collab_weight lie_dummy lmie_dummy umie_dummy hie_dummy crudeoil distance exp_good…
Subscribe to:
Post Comments (Atom)
0 Response to Why does my logistic regression model fail the Homer and Lemeshow's test?
Post a Comment