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 previous message
May is currently offline  May
Messages: 3
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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ARI data and commands in STATA
Goto Forum:
  


Current Time: Wed Dec 25 15:03:12 Coordinated Universal Time 2024