Confidence Intervals ORS use-Nigeria 2013 [message #3138] |
Tue, 21 October 2014 23:46 |
pr2423
Messages: 2 Registered: October 2014 Location: NYC
|
Member |
|
|
Hi,
I am trying to replicate % of children who received ORS among children who had diarrhea in the past 15 days from the Nigeria 2013 data. I am using SAS for my analysis. For country, region and urban/rural I get the correct point estimates and standard error only when I ignore the strata command in SAS and use only clusters. I know that the data was first stratified by state and then urban/rural, is it okay to ignore stratification while constructing confidence intervals? would this change if I wanted confidence intervals for each state? I would really appreciate any insight into this! am I missing something about the study/sample design?
Please find the code that gives me the correct answer below, adding the strata command in proc survey freq(strata = v022) to this I get the wrong answer-
/*creating variable for having been given ORS*/
data ors;
set ors;
if h13 = 1 or h13 = 2 then ors =1;
else ors =0;
run;
data ors;
set ors;
wgt = v005/1000000;
run;
/*h11 = 2 when child had diarrhea in the past 15 days, v024 = region*/
proc surveyfreq
data = ors;
where h11 =2 and v024 =5;
cluster v021;
weight wgt;
tables ors;
run;
|
|
|