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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

*********************************************************************************** PROGRAM: F:\Q3_2005\Programs\<strong>Sampling</strong>\BWT.SAS* TASK: 2005 DoD Health Care Survey, Quarterly <strong>Sampling</strong>* PURPOSE: Construct <strong>Sampling</strong> Weight for 2005 Quarterly DoD Survey Form A*** INPUTS: FRAMEA.SD2 - Frame for 2005 Quarterly DoD Survey* SAMPLA.SD2 - Internal Sample file for 2005 Quarterly DoD Survey** OUTPUTS: BWT.SD2 - <strong>Sampling</strong> Weight for 2005 Quarterly DOD Survey Form A** Updated: 1)Haixia Xu on 11/18/2004 for q1, 2005 sampling* 2)Haixia Xu on 05/12/2004 for q3, 2005 sampling**********************************************************************************;options ls=132 ps=79 nocenter compress=yes;title1 ’Construct the <strong>Sampling</strong> Weight, BWT.SD2’;title2 ’from the 2005 Quarterly DoD Files, FRAMEA.SD2 and SAMPLA.SD2’;title3 ’Program: BWT.SAS by Esther Friedman’;***** Set up the input and output paths. *****;libname in v6 "..\..\Data\AFinal";libname out v6 "..\..\Data\AFinal";libname inv8 v8 "..\..\Data\AFinal";*** include the design effects macro.;%include "design_effects_unequal_weights.sas";data sampla;set in.sampla;run;***** Create the numerator and denominator for the sampling weight. *****;title5 ’Information from the Frame’;proc freq data=in.framea noprint;table stratum / list missing out=frame;run;data frame (rename = (count = Fcnt_str));set frame (keep = stratum count);run;title5 ’Information from the Sample’;proc freq data=sampla noprint;table stratum / list missing out=sample;run;data sample (rename = (count = Scnt_str));set sample (keep = stratum count);F-1

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

Saved successfully!

Ooh no, something went wrong!