75/25 random split on dichotomous variable needed

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

galletas
Posts: 1
Joined: Fri Sep 11, 2015 8:23 pm

75/25 random split on dichotomous variable needed

Postby galletas » Fri Sep 11, 2015 9:15 pm

I have a dichotomous target variable. I want to test a predictive model on 250 randomly selected 1's and 750 randomly selected 0's of that target variable. How do I create this complex grouping variable that combines information from a target variable, the need for random selection from that variable's two groups, and a specific number of cases from each of those groups?
statman
Administrator
Posts: 2756
Joined: Tue Jun 12, 2007 12:08 pm
Location: Florida, USA

Re: 75/25 random split on dichotomous variable needed

Postby statman » Sat Sep 12, 2015 12:11 pm

Check the SELECT function, and ...........
See the note below

NOTE: Please read the Posting Guidelines and always tell us your OS, the SPSS version and information about your study and data!

Statman
Statistical Services

Who is online

Users browsing this forum: No registered users and 3 guests

cron