******************************************************************* * Program: C:\NHANES\CleanRecode_CheckSkip.sas * * Proposal: Check skip patterns for blood pressure questionnaire * *******************************************************************; libname NH "C:\your_dir"; /*change the name of the directory folder to the location that you saved your downloaded dataset from the sample code and dataset downloads module: for example "c:\nhanes\data"*/ /*Check ship pattern using cross table*/ Proc freq data=NH.demo_BP1; where ridstatr=2 and ridageyr>=20; * interviewed and examined(ridstatr=2), adults age 20+; table BPQ020 BPQ030 BPQ050a BPQ020*(BPQ030 BPQ050a)/list missing; title 'Check skip pattern for BP questionnaire'; run;