Different subsets of the same datafile to analyze

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

Different subsets of the same datafile to analyze

Arnaldo Ferrari Nasi
Hi List,

This is the situation:
I have a long syntax that makes several analyses.
I have one dataset to analyse.
In this dataset there is a variable "target" that assumes 1 to 10 values.
I have to analyse 10 subsets of the data selected each time for a different
value of the target variable.

I do it "manually".

get file  "c:\data.sav".
select if (target =1).
- run syntax -

get file  "c:\data.sav".
select if (target =2).
- run syntax -

...

get file  "c:\data.sav".
select if (target =10).
- run syntax -


How can I do this automatically?

Thanks a lot,
Arnaldo.
Reply | Threaded
Open this post in threaded view
|

Re: Different subsets of the same datafile to analyze

Beadle, ViAnn
Did you not receive responses from me and Ray Levesque to this question posted on Sunday?

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Arnaldo Ferrari Nasi
Sent: Tuesday, March 06, 2007 5:51 AM
To: [hidden email]
Subject: Different subsets of the same datafile to analyze

Hi List,

This is the situation:
I have a long syntax that makes several analyses.
I have one dataset to analyse.
In this dataset there is a variable "target" that assumes 1 to 10 values.
I have to analyse 10 subsets of the data selected each time for a different
value of the target variable.

I do it "manually".

get file  "c:\data.sav".
select if (target =1).
- run syntax -

get file  "c:\data.sav".
select if (target =2).
- run syntax -

...

get file  "c:\data.sav".
select if (target =10).
- run syntax -


How can I do this automatically?

Thanks a lot,
Arnaldo.
Reply | Threaded
Open this post in threaded view
|

Re: Different subsets of the same datafile to analyze

Arnaldo Ferrari Nasi
Hi,
I would thank Viann and Ray for the useful responses.
I haven't seen it sunday, I've found it today in the archives!

Arnaldo.


>Did you not receive responses from me and Ray Levesque to this question
>posted on Sunday?
>
>-----Original Message-----
>From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
>Arnaldo Ferrari Nasi
>Sent: Tuesday, March 06, 2007 5:51 AM
>To: [hidden email]
>Subject: Different subsets of the same datafile to analyze
>
>Hi List,
>
>This is the situation:
>I have a long syntax that makes several analyses.
>I have one dataset to analyse.
>In this dataset there is a variable "target" that assumes 1 to 10 values.
>I have to analyse 10 subsets of the data selected each time for a different
>value of the target variable.
>
>I do it "manually".
>
>get file  "c:\data.sav".
>select if (target =1).
>- run syntax -
>
>get file  "c:\data.sav".
>select if (target =2).
>- run syntax -
>
>...
>
>get file  "c:\data.sav".
>select if (target =10).
>- run syntax -
>
>
>How can I do this automatically?
>
>Thanks a lot,
>Arnaldo.
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.5.446 / Virus Database: 268.18.7/711 - Release Date: 05/03/2007
>9.41