Changeset 21019 in main


Ignore:
Timestamp:
07/12/20 17:29:22 (4 weeks ago)
Author:
Paul Leo
Message:

Maryland BRFSS SAS back-end programs and .cfg for multi-year, multi-split samples.
Note - SurveyCrudeRateMultiYR.sas should work for multi-year, multi-split, and multi-year, one split per year.
Still testing to see if it will work with all queries.

Location:
adopters/md/trunk/src/main/backend_qModules/brfss23
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • adopters/md/trunk/src/main/backend_qModules/brfss23/SurveyCrudeRateMultiYR.sas

    r20901 r21019  
    4444        data tmp;
    4545                set tmp;
    46                 if &varname. > . then do;
    47                         if _LCPWTV1 > . then CorrectWeight = _LCPWTV1;
    48                         else if _LCPWTV2 > . then CorrectWeight = _LCPWTV2;
    49                         else if _LCPWTV3 > . then CorrectWeight = _LCPWTV3;
     46                if &varname. > . then do;  * selects records where that variable was asked;
     47                        if _LCPWTV1 > . then do; CorrectWeight = _LCPWTV1; Split=1; end; * identifies what split it is in;
     48                        else if _LCPWTV2 > . then do; CorrectWeight = _LCPWTV2; Split=2; end;
     49                        else if _LCPWTV3 > .  then do; CorrectWeight = _LCPWTV3; Split=3; end;
    5050                end;
    5151        run;
     
    5353*** Grabs frequency by year, to set proprotion;
    5454   proc freq data=tmp noprint;
    55      tables year / out=wgt;
     55     tables year*Split / out=wgt;
    5656     run;
    5757     proc print data=wgt noobs; title1 '-------------'; title2 'wgt: first output frequency table'; run;
     
    7171     run;
    7272   
    73         proc print data=tmp (obs=20); title2 'tmp: for submission to proc surveymeans'; run;
     73        proc print data=tmp (obs=20); where split > .; title2 'tmp: for submission to proc surveymeans'; run;
    7474
    7575***********************************************************************;
  • adopters/md/trunk/src/main/backend_qModules/brfss23/_BRFSSMultiYR.cfg

    r20901 r21019  
    334334### State Added
    33533590 gmblcsno GambleCasino null GambleCasino num 0 8
     33690 FPLAST PregPreventYN null PregPreventYN num 0 8
    336337
    337338#
Note: See TracChangeset for help on using the changeset viewer.