The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » logistic regression
Re: logistic regression [message #12135 is a reply to message #12044] Fri, 31 March 2017 11:22 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3054
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:

When you do a logit (=logistic) regression, Stata expects the dependent or outcome variable to be coded 0 or 1. I don't know quite what your outcome variable looks like, but I don't think it is coded 0 or 1. I think that in your example, Stata has consolidated all values greater than 0 into the "1" category.

Education category 0, which is the lowest numbered code for v106, is the default "reference category" in Stata. The odds ratio for that category is 1. I wish Stata included that category in the output, and gave it a coefficient of 1 and a standard error of 0, to help users with the interpretation. Odds ratios for the other categories are relative to the reference category. That is, whatever your Y is, the odds of Y=1 vs Y=0 is the constant term, .5033758, for cases with v106=0. The odds of Y=1 vs Y=0 is .5033758 times 1.633612, for cases with v106=1. The odds of Y=1 vs Y=0 is .5033758 times 4.190808, for cases with v106=2, etc. Odds ratios (=relative odds) are the odds of Y=1 vs Y=0 in a specific category relative to the odds in the reference category.

However, the main problem here is not with the interpretation but that you can only do a logit regression with a 0/1 outcome.

 
Read Message
Read Message
Previous Topic: trend analysis with svy comand
Next Topic: understanding data column entry techniques
Goto Forum:
  


Current Time: Sun May 12 02:40:14 Coordinated Universal Time 2024