Hi Everyone,
I am stuck at a problem and seek your expertise.
I have an individual level data of pregnant women giving birth at several different districts located in different states of India on a particular date.
At the end of her hospital stay, every woman was asked if she received quality postnatal care (Yes==1 & No==0). I want to create two variables from this information
Below is the example of my dataset.
dataex caseid date month year district45 float(state quality)
----------------------- copy starting from the next line -----------------------
[CODE]
* Example generated by -dataex-. For more info, type help dataex
clear
input str15 caseid long date byte month int year long district45 float quality state
" 19240150 02" 18294 3 2014 172 0 3
" 19201106 02" 18294 6 2016 525 1 6
" 02097658 04" 18294 2 2010 505 0 7
" 19006936 04" 18294 5 2016 590 1 2
" 20046984 02" 18294 2 2010 166 1 4
" 19192875 02" 18294 5 2014 254 1 4
" 19091611 06" 18294 2 2010 246 1 1
" 19095627 02" 18294 2 2010 587 0 12
" 19104880 04" 18294 2 2010 155 1 15
" 04019661 02" 18294 8 2018 168 1 2
" 35005994 02" 18295 2 2010 336 0 3
" 19124124 06" 18295 2 2010 425 0 6
" 19213604 04" 18295 8 2014 26 1 9
" 35003652 02" 18295 2 2010 432 1 8
" 19097162 04" 18295 2 2010 66 0 3
" 19226824 02" 18295 2 2010 587 0 6
Regards
Dr Pavan
I am stuck at a problem and seek your expertise.
I have an individual level data of pregnant women giving birth at several different districts located in different states of India on a particular date.
At the end of her hospital stay, every woman was asked if she received quality postnatal care (Yes==1 & No==0). I want to create two variables from this information
- Variable 1 (monthlyrate): Percentage of woman giving birth in a particular month in each district who received quality care.
- Variable 1 (yearlyrate): Percentage of woman giving birth in a particular year in each district who received quality care.
Below is the example of my dataset.
dataex caseid date month year district45 float(state quality)
----------------------- copy starting from the next line -----------------------
[CODE]
* Example generated by -dataex-. For more info, type help dataex
clear
input str15 caseid long date byte month int year long district45 float quality state
" 19240150 02" 18294 3 2014 172 0 3
" 19201106 02" 18294 6 2016 525 1 6
" 02097658 04" 18294 2 2010 505 0 7
" 19006936 04" 18294 5 2016 590 1 2
" 20046984 02" 18294 2 2010 166 1 4
" 19192875 02" 18294 5 2014 254 1 4
" 19091611 06" 18294 2 2010 246 1 1
" 19095627 02" 18294 2 2010 587 0 12
" 19104880 04" 18294 2 2010 155 1 15
" 04019661 02" 18294 8 2018 168 1 2
" 35005994 02" 18295 2 2010 336 0 3
" 19124124 06" 18295 2 2010 425 0 6
" 19213604 04" 18295 8 2014 26 1 9
" 35003652 02" 18295 2 2010 432 1 8
" 19097162 04" 18295 2 2010 66 0 3
" 19226824 02" 18295 2 2010 587 0 6
Regards
Dr Pavan
Comment