4.2 SAS preparation

Here is how to import the CSV file as a SAS dataset. This step is skipped if one already has the CLSA datasets in SAS format. We do not need to declare the survey design at this stage as we will specify the design during data analysis.

PROC IMPORT datafile="[Path]/CLSARealExample.csv"   
        out=CLSAData   dbms=csv    replace;                                 
        GETNAMES=YES;  DATAROW=2;  guessingrows=max ;                        
RUN; 

By default, SAS will ignore the PSUs with single observations during variance calculation.