FAQ/rand/spss - CBU statistics Wiki
location: FAQ / rand / spss

Random samples in SPSS

Two methods are available to produce random samples in SPSS using syntax.

Cutting and pasting the syntax in the box below and then running in a SPSS syntax window produces a 10% sample (without replacement). The sample will be contained in a file called tenpc.sav on the C: drive.

temporary.
sample .10.
save outfile="c:\tenpc.sav".

The syntax in the box below produces a sample of size 500 from a total sample of 5000 (without replacement) and saves in a file called tenpc.sav on the C: drive.

temporary.
sample 500 from 5000.
save outfile="c:\tenpc.sav".

None: FAQ/rand/spss (last edited 2013-03-08 10:17:18 by localhost)