Ghana DHS 2022 [message #30437] |
Fri, 29 November 2024 13:04 |
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.
|
|
|