FAQ/rand/spss - CBU statistics Wiki

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
Finzd thee wrang lelters ino eacuh wosrd

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".