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.

un;else output problem;title5 ’Check the Constructed Variables’;proc freq data=bwt;tables pnsexcd*sexsmpl svccd*svcsmpl / list missing;run;title5 ’Information for the <strong>Sampling</strong> Weight’;proc univariate data=bwt normal plot;var bwt;run;data inv8.bwt;set bwt;label bwt = ’<strong>Sampling</strong> Weight’;run;title5 ’Checks for BWT Data Set’;proc means data=inv8.bwt n sum;var bwt;run;title5 ’Contents of the <strong>Sampling</strong> Weight Data Set’;proc contents data=inv8.bwt;run;***Modified on 07/13/04 by Haixia Xu for q4, 2004to check the variables EBG_COM, ENBGSMPL , and CACSMPLin the way we did with the variable STRATUM in the previous quarters;%macro checkvar(input_data, sorting_variable, weighting_variable);title5 ’Freq of &sorting_variable. from the Frame’;proc freq data=in.framea noprint;table &sorting_variable. / list missing out=frame;run;data frame (rename = (count = numer));set frame (keep = &sorting_variable. count);run;proc means data=&input_data. n sum noprint;class &sorting_variable.;var &weighting_variable.;output out=bwtchk n = sampcnt sum = bwtsum;run;data bwtchk;set bwtchk;where _type_ = 1;run;proc sort data=bwtchk;by &sorting_variable.;F-3

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

Saved successfully!

Ooh no, something went wrong!