The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Cox Model and Recoded Variables From BR File (Negative Coding for Dotted (.) Observation)
Re: Cox Model and Recoded Variables From BR File [message #20210 is a reply to message #20206] Thu, 08 October 2020 07:45 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3106
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

Your recodes look fine. The problem is just with your specification of the subpop option for svy. What Stata expects for the argument (you have entered "subpopulationbw2") is a variable that has the value 1 for the subpopulation you want to restrict to. For example, you could have this line, "gen Punjab=1 if v024==1" and then specify the option with "subpop(Punjab)". Then to run the model for Sindh you would have "gen Sindh=1 if v024==2" and then specify the option with "subpop(Sindh)", etc. (If this doesn't work, try recoding as 0 or 1, but I think . or 1 is ok.) It's good that you are running the model with the subpop option rather than with "...if v024==1", etc. It's just that the specification of the argument is off.

 
Read Message
Read Message
Previous Topic: maternal mortality
Next Topic: Full Birth History for all birth in Preceding 5 years But ANC history for Most Recent Birth
Goto Forum:
  


Current Time: Wed Jul 10 10:26:02 Coordinated Universal Time 2024