4.3 SPSS preparation

In SPSS, readers can import the CLSA datasets by the user interface: “File” “Import Data” “CSV Data” select the datafile and click “Open”. Then follow the instruction on the screen and click “Ok”.

To create the stratum variable, Transform Compute Variable Type “StraVar” under “Target Variable” and “WGHTS_GEOSTRAT_TRM” under “Numeric Expression” click: “Type & Labels” and select “String” in the “Type” panel.

We then declare the survey design by clicking “Analyze Complex Samples Prepare for Analysis click “Create a plan file” and choose a location and name as CLSADesign.csaplan Next”. Under Strata, select the variables “StraVar” and select “WGHT_INFLATION_TRM” under “Sampling Weight” and accept the default settings.

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