Create new dataset by grouping variable

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

Ezrahite17
Posts: 2
Joined: Wed Jul 17, 2013 3:08 pm

Create new dataset by grouping variable

Postby Ezrahite17 » Wed Jul 17, 2013 3:12 pm

Hi,

I have a nested dataset of response times, so there is a variable specifying the participant and a number of rows with their responses to the various stimuli. I need to create a new dataset for each participant, but would rather not copy and paste through hundreds of people. Is there a macro or simple code that I could run that would automatically save for me a new dataset for each participant by specifying the specific grouping variable?

Thanks!
statman
Administrator
Posts: 2699
Joined: Tue Jun 12, 2007 12:08 pm
Location: Florida, USA

Re: Create new dataset by grouping variable

Postby statman » Wed Jul 17, 2013 7:01 pm

Look into the SELECT IF and TEMP with SAVE to see if this is helpful
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 1 guest

cron