The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » HIV » Replicating HIV testing coverage rates
Re: Replicating HIV testing coverage rates [message #893 is a reply to message #838] Wed, 30 October 2013 16:16 Go to previous messageGo to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
Dear User,
I am not a programmer but was looking at the standard tables and it looks as though the variables used are:
Row Variables
HV025 Type of place of residence
HV024 Region
A Total variable for the 15-49 age group (if you're looking at women)
Column Variables
HIVRES1 recodes HA63
HIVRes2 recodes HA65
sex variable
HA63 is the result of measurement
HA65 is result of woman interview

Here is some of the CSPro code which may help you.

They are used as follows:
{ tabulate women for tables 14.1 & 14.2 }
{ as they are based on all eligible women }
isex = 1;
tot1549 = 0;
for i in RECH5_EDT do
box HA63 => hivres1;
1 => 1; { blood taken }
3 => 2; { refused }
2 => 3; { not present }
=> 4; { 4-not tested/5-inconclusive/6-other/missing }
endbox;

{ if blood taken check if test was successful }
samptake = 0;
if HA63 = 1 then
{ load test data for women and modify hivres1 accordingly }
xline = edit("ZZ9",HA0);
samptake = loadcase( HIVTESTDAT, HV001, HV002, xline );
if samptake then
if !HIV03 in 0:7 then
hivres1 = 4; { test was performed but protocol didn't reach the end }
samptake = 0; { not enough blood will not be included in the denominator }
endif;
else
hivres1 = 4; { blood taken but sample not on data file }
endif;
endif;

if HV103(HA0) = 1 then { de-facto population }
box HA65 => hivres2; { result of individual interview }
1 => 1; { complete }
=> 2; { other }
endbox;
v106w = HA66; { education from individual interview }
if HA66 in 8,missing then v106w = 9 endif;
hivage = int( HA1/5 ) - 2; { age in five years }

xtab( t1401 );
 
Read Message
Read Message
Read Message
Previous Topic: Svyset in Stata for HIV results and ART use data
Next Topic: Cameroon: Sample domain missing for weights
Goto Forum:
  


Current Time: Wed Feb 26 10:00:56 Coordinated Universal Time 2025