LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 4 Feb 2010 20:36:52 +0100
Reply-To:   John F Hall <johnfhall@orange.fr>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   John F Hall <johnfhall@orange.fr>
Subject:   Re: Syntax for case seletion-clerification
Comments:   To: "Ergul, Emel A." <EERGUL@PARTNERS.ORG>
Content-Type:   multipart/alternative;

See my memo just sent and substitute your own varnames and values in the syntax. ----- Original Message ----- From: Ergul, Emel A. To: SPSSX-L@LISTSERV.UGA.EDU Sent: Thursday, February 04, 2010 8:21 PM Subject: Re: Syntax for case seletion-clerification

Mike and Gene,

Here is a brief graphic desc. Incisions done with different time intervals. For each incision,

Incision1st Incition2nd --incision6th diagnosis dm age

Id1 12423 12514 -- 78093 CA NO 34 Id2 12514 78093 -- 12423 LD YES 42 Id3 Id4 -- -- Id2000 *** 12423: incision tool silver 12514: incision tool polymer 78093: incision tool cupper (many more types here) *** Manually I've tried to get rid off certain tools in series by using Select cases-->if incision1st <12423 but you can selet one incision per trial.

Let me experiment with both syntax and see.

Thanks so very much!!

emel

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Mike Palij Sent: Thursday, February 04, 2010 1:32 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Re: Syntax for case seletion-clerification

If I may butt in here:

(1) You want to select subsets of subjects on the basis of one or more variables. What are the names of these variables? Is it the case that the variables are:

toola,toolb,toolc,toold,toole, toolf, toolg

The key point is one needs the specific names of the variable(s) that you want to use as the basis of selecting subjects.

(2) What are the values of the variables that you want to use to select subjects? Do you, say, zero-one coding to indicate absence(=0) or presence(=1)? Consider the following syntax.

temp. <-- Temporarily executes the following until the first procedure is done. select if (toola eq 0). <--- select only those subjects who have toola=0. desc var=var1 to var10. <--- provide descriptive stats for selected subjects for var1 to var10.

After desc procedure is done, the temporary selection is turned off and you have all of the subjects to work with again.

If you wanted to use multiple variables for selecting subjects, consider:

temp. select if (toola eq 0 and toolb eq 0 and toolc eq 1). desc var=var1 to var10.

The "select if ( )" allows you to identify the variables and their values that you want to use for selecting subsets of subjects. I use the descriptives procedure but any procedure can be used in its place.

More info can be gotten from the help menu and syntax icon (the "/_" thingie).

Please let us know whether or not this is the issue you are trying to deal with.

-Mike Palij New York University mp26@nyu.edu

The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (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


[text/html]


Back to: Top of message | Previous page | Main SPSSX-L page