The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Ghana DHS 2022 (Immunisation)
Ghana DHS 2022 [message #30437] Fri, 29 November 2024 13:04 Go to next message
May is currently offline  May
Messages: 2
Registered: October 2024
Member
Hello DHS,

I used the syntax provided by the DHS to compute the fully immunised variable but my logistic regression analysis is not classifying the cases correctly. Is anyone able to look at the syntax below and give me some advice please?


COMPUTE DPT1hrecodedhs=(H3 >= 1 & H3 <= 3).
EXECUTE.
COMPUTE DPT2hrecodedhs=(H5 >= 1 & H5 <= 3).
EXECUTE.
COMPUTE DPT3hrecodedhs=(H7 >= 1 & H7 <= 3).
EXECUTE.
COMPUTE Polio1hrecodedhs=(H4 >= 1 & H4 <= 3).
EXECUTE.
COMPUTE Polio2hrecodedhs=(H6 >= 1 & H6 <= 3).
EXECUTE.
COMPUTE Polio3hrecodedhs=(H8 >= 1 & H8 <= 3).
EXECUTE.

COUNT Fullyimmunised=BCG1recodedhs DPT1hrecodedhs DPT2hrecodedhs DPT3hrecodedhs Polio1hrecodedhs
Polio2hrecodedhs Polio3hrecodedhs Measleshrecodedhs(1).
VARIABLE LABELS Fullyimmunised 'Fullyimmunised'.
EXECUTE.
COMPUTE Fullyimmunisedcomputed=Fullyimmunised = 8.
EXECUTE.
Re: Ghana DHS 2022 [message #30472 is a reply to message #30437] Wed, 04 December 2024 14:44 Go to previous messageGo to next message
Janet-DHS is currently offline  Janet-DHS
Messages: 899
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:

In what you listed, you don't include checks for BCG and Measles. Was that just a copying accident?

If you checked for all 8, you should match the column headed "Fully vaccinated (basic antigens)" in table 10.4. Is that what you are trying to match, and do you not get a match?
Re: Ghana DHS 2022 [message #30473 is a reply to message #30472] Wed, 04 December 2024 16:20 Go to previous message
May is currently offline  May
Messages: 2
Registered: October 2024
Member
Dear Tom,

Thank you for your response. I am trying to compute the fully immunised variable. I wonder if you could help me with the syntax for this variable, please?
Previous Topic: ARI data and commands in STATA
Goto Forum:
  


Current Time: Sun Dec 8 05:10:38 Coordinated Universal Time 2024