************************************************************ * Program: C:\NHANES\CleanRecode_CheckWeight.sas * * Proposal: Check influential value vs. influential weight * ************************************************************; 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"*/ /*Plot to check for influential value (cholesterol) vs. influential weight (wtmec4yr) associated with that value */ symbol1 value=dot height=.2; proc gplot data=NH.demo_BP2b; where ridstatr=2 and ridageyr>=20;* interviewed and examined(ridstatr=2), adults age 20+; plot wtmec4yr*lbxtc/frame; title 'NHANES 1999-2002, adults aged 20 years and older'; run;