Hello everyone,
I have a logistic regression with an extensive set of control variables. My dependent variable is electoral turnout in an election and one of my indepedent variables is a continious variable for age. In the country of interest, age shows a curvliniear relationship to electoral turnout and therefore, I also want to include age squared. My issue is that when I have the logistic regression without the age squared, the relationship between electoral turnout and age shows a positive and not statistically significant relationship. However, when I include age squared as well, the variable age (not squared) is negative and statistically significant, while age squared shows a positive and statistically significant relationship. Normally, the age variable "should be" positive. Is it "normal" that the original variable shows a negative relationship, while the squared variable shows a positive relationship, or vice versa? Or is this because I've done something wrong? I can't see any problems with the age and aqe squared variable.
The first picture shows with the squared variable excluded and the second picture with the age squared variable included. "ålderkont" is the not squared variable, while "ålderkont2" is the squared variable.
Array
Array
Thank you very much in advance.
Best regards,
Kajsa
Related Posts with Including squared variables in logistic regression change direction of relationship. Why?
Combine histogram and connected line graph over timeDear Statalist forum users, I came across this graph in a published paper and want to produce a simi…
Cross sectional dependence for firm panel dataDo we conduct a cross sectional dependence test for panel data with N being listed firms and T being…
How to Modify Stata Data (Dta file) using python code and save changes back to the dta fileI have 2000 observations and 100 variables in my data from an empirical research project. I am curre…
Keep variable1 if 1 observation per year OR*the minimum number for a variable2 if > 1 observations per yearNeed help! My goal is to write code to keep a single HbA1c value per year closest to each participan…
By ID_number, keep registry-based (baseline=0) test dates obtained 1 year after original (baseline=1) study’s test dateReally need help! With the expert guidance of a statistician, I merged (using the append command) a …
Subscribe to:
Post Comments (Atom)
0 Response to Including squared variables in logistic regression change direction of relationship. Why?
Post a Comment