Values out of Range

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

Values out of Range

Juan Pablo Sandoval
Hi Listers:

I have SPSS V13 and I have a large Database 6k records and 2k variables. Is
there an efficient way to write syntax to check if every variable is within
specified ranges. For example var1 can be sysmis or between 1 and 5, var2
cannot be sysmiss and must be between 1 and 2, etc. I have a list of all
variables and their respective posible values.

Does anyone working on a market research company has an idea of how this
would work, basically I'm trying to simplify a job that could take me a lot
of time.

Regards,

=====================
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: Values out of Range

Peck, Jon
This is the kind of thing that the Data Validation option does, but that was introduced, I think, in SPSS 14.  You can write a lot of IF statements and then summarize them otherwise.

Regards,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Juan Pablo Sandoval
Sent: Friday, January 25, 2008 10:01 AM
To: [hidden email]
Subject: [SPSSX-L] Values out of Range

Hi Listers:

I have SPSS V13 and I have a large Database 6k records and 2k variables. Is
there an efficient way to write syntax to check if every variable is within
specified ranges. For example var1 can be sysmis or between 1 and 5, var2
cannot be sysmiss and must be between 1 and 2, etc. I have a list of all
variables and their respective posible values.

Does anyone working on a market research company has an idea of how this
would work, basically I'm trying to simplify a job that could take me a lot
of time.

Regards,

=====================
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

=====================
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