Randomly split sample into 3 subsamples

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

marcel25
Posts: 1
Joined: Sat Aug 22, 2015 11:22 pm

Randomly split sample into 3 subsamples

Postby marcel25 » Sat Aug 22, 2015 11:29 pm

Hi,


Could anyone please let me know how I can randomly split a sample (750 cases) into three subsamples cointaing 250 cases each? All three subscamples must contain different cases.


Thanks
GerineL
Moderator
Posts: 1477
Joined: Tue Jun 10, 2008 4:50 pm

Re: Randomly split sample into 3 subsamples

Postby GerineL » Sun Aug 23, 2015 4:09 pm

first select randomly 250 cases, then sort cases so that the 500 remaining cases are on top and select 250 of those (both using select cases -> random sample of cases).
Then you can create a variable in which you combine these.

Who is online

Users browsing this forum: No registered users and 2 guests

cron