Statistics – take a random sample
Hi, I got the question how to take a random sample from a data file. The simplest way is to do this:
First use the command: Data – Select Cases
Then click this choice and click on “Sample“-button:
Then type in how big your sample should be, here 5%. Then click “Continue” and “OK“.
Note: if you choose the second alternative you have to know how many cases you have in total. If I want to choose exactly 80 cases from my file that has 1000 cases, I will type in 80 and 1000.
If you look in the data window, you will see that some cases are filtered out temporary. So your analysis will be based on juste the selected ones, see the red boxes in my picture.
Thanks for watching!