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?
Social-Network Peer Effect Regression AnalysisI am estimating peer effect of students on their GPA score using Friendship network model. The model…
Diff-in-diff graphI am currently running a diff-in-diff analysis on stop and frisk policies in new york city using New…
Generates averages for partial observationsHi everyone! My dataset is composed of 4122 observations: 83 cities and for each observation to 190…
What is intreg? What is the theory behind it?The UCLA IDRE website has an article on -intreg- to estimate models with interval dependent variable…
How to create groups of observations based on shared characteristics and create variables around that.So I'm doing some work with election data. The data I have is formatted like this: Code: * Example…
Subscribe to:
Post Comments (Atom)
0 Response to Why does my logistic regression model fail the Homer and Lemeshow's test?
Post a Comment