Saving a SPSS dataset into multiple datasets at once based on a filter or a variable

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Saving a SPSS dataset into multiple datasets at once based on a filter or a variable

Nagaraju Thogiti
Hi,

 

I need to divide a large dataset into numerous segments based on a
filter or variable and fit models separately. At present I make multiple
copies of the original dataset and use "select cases" in the "edit" menu
to delete unwanted cases. My question is that if SPSS has a mechanism to
export or split the file and save into multiple segments based on the
filter.

 

Thank you,

Nagu

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Saving a SPSS dataset into multiple datasets at once based on a filter or a variable

Maguin, Eugene
Nagaraju,

I may not understand your problem, but I think that an easier, more direct
method would be to use the split files command. If, for instance, you had a
variable, AA, with 6 values, and you wanted to run a correlation for each
subset of cases with the same value of AA, you could say

Sort cases by AA.
Split file by AA.
Correlation x1 with y1 to y10.

The critical element is that you must do the same set of procedures with
each subset of cases.

Gene Maguin

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD