Diff for "FAQ/rand/spss" - CBU statistics Wiki
location: Diff for "FAQ/rand/spss"
Differences between revisions 1 and 2
Revision 1 as of 2007-08-15 14:47:42
Size: 620
Editor: PeterWatson
Comment:
Revision 2 as of 2013-03-08 10:17:18
Size: 620
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

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)