12.07.2015 Views

2006 HCSDB Adult Sampling Report - Tricare

2006 HCSDB Adult Sampling Report - Tricare

2006 HCSDB Adult Sampling Report - Tricare

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

title5 "Checking the coding of the collapsements";proc freq data=framea;tables cacsmpl*ebsmpl*ebg_com/missing list;run;title5 ’Information for the Frame’;********create substr variable for checking;data framea;set framea;geosmpl=substr(stratum,2,4);run;proc contents data = framea;run;*************************************;*** ***;*** This section is for checking. ***;*** ***;*** Sum the enbgsampl categories. ***;*** ***;*************************************;proc sort data=framea ;by geosmpl;run;proc means data=framea noprint;by geosmpl;var enbgs01 enbgs02 enbgs03 enbgs04 enbgs05 enbgs06 enbgs07;output out=out.s_frameasum(enbgs01 enbgs02 enbgs03 enbgs04 enbgs05 enbgs06 enbgs07) =s_enbg01 s_enbg02 s_enbg03 s_enbg04 s_enbg05 s_enbg06 s_enbg07;run;data s_framea;set out.s_framea;str_cnt=s_enbg01+s_enbg02+s_enbg03+s_enbg04+s_enbg05+s_enbg06;run;proc sort data=s_framea ;by descending str_cnt;run;data s_framea (keep=geosmpl str_rnk );set s_framea;str_rnk=_n_;run;proc sort data=framea ;by geosmpl;run;proc means data=framea noprint;by geosmpl;F-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!