The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Vitamin A supplement in last 6 months
Re: Vitamin A supplement in last 6 months [message #12769 is a reply to message #12763] Tue, 11 July 2017 12:24 Go to previous messageGo to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
A response from Senior Analyst, Dr. Lindsay Mallick:
Quote:

Here is some code to help match the Vitamin A indicator to the final report. In order to match, you also have to use the date of the supplementation according to the vaccination card.
gen wt= v005/1000000

gen agemonths = v008 - b3

*to match vitamin A to the report, need to convert month/year from vaccination card into CMC
gen month = h33m if h33m<13 & h33m>0
gen year=h33y if h33y>2004 & h33y<2016
gen vacccmc = (year - 1900)*12 + month
gen last6 = v008 - vacccmc
gen lastva = 1 if last6<7

gen vita=0 if b5==1
replace vita=1 if h34==1
replace vita=1 if lastva==1
                                
tab  vita  if agemonths>5 & agemonths<60 [iw=wt]

Thanks,
Lindsay

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EVER BREAST-FED ON SAS
Next Topic: matching data
Goto Forum:
  


Current Time: Mon Dec 23 05:23:45 Coordinated Universal Time 2024