************************************************************ * Program: C:\NHANES\CleanRecode_CheckOutliers.sas * * Proposal: Check for continuous variable for outliers * ************************************************************; 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"*/ /*This program will check the distribution and outliers for continuous variables*/ proc univariate data=NH.demo_BP2b normal plot; where ridstatr=2 and ridageyr>=20;* interviewed and examined(ridstatr=2), adults age 20+; id seqn; var lbxtc; title 'Check distribution of serum total cholesterol'; run;