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 (October 2007)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 9 Oct 2007 15:29:59 +0200
Reply-To:     Spousta Jan <JSpousta@CSAS.CZ>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Spousta Jan <JSpousta@CSAS.CZ>
Subject:      Re: Help with syntax
Comments: To:
In-Reply-To:  A<>
Content-Type: text/plain; charset="iso-8859-2"

Hi Hans-Christian,

In this case, the best way probably is to create a new variable with combinations of strings or numbers from the original variables, for example this way (on an example file from the SPSS instalation):

GET FILE='C:\Program Files\SPSS\1991 U.S. General Social Survey.sav'.

* let us find combinations in these variables: hlth1 Ill Enough to Go to a Doctor hlth2 Counselling for Mental Problems hlth3 Infertility, Unable to Have a Baby hlth4 Drinking Problem hlth5 Illegal Drugs (Marijuana, Cocaine) . string combin (a120). do repe x = hlth1 to hlth5 / y = "Ill" "Mental" "Infertil" "Drink" "Drugs". if x = 1 combin = concat(rtrim(combin)," ",y). end repe. var lab combin "Codes of combinations".

fre combin /FORMAT=DFREQ.

Perhaps you can recode it into a numeric variable thereafter:




-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Hans-Christian Stahl Sent: Tuesday, October 09, 2007 2:50 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Help with syntax

Dear List-Members,

Physicians were asked for each patient to answer with yes or no to 16 different single substances, which by way of combination, indicate the chemotherapy-scheme of each patient. The substances are therefore multiple response answers. How can I now find out the combinations for each patient and how can I do a frequency analysis of the combinations?

Can someone help me with the programming of the syntax?

That's how I thought it might be logically possible to find a solution to the problem:


The combination of the substances is given for each patient. If a substance occurs, the answer is yes or coded 0.


X = Cisplatin

Y = Erbitux

Z = Avastin

And let for instance be: X=0 und Y=0 und Z=1.

if (in the list of the substances (X, Y, Z . ), the substance variables (X, Z, Y ...) = 0) make string variable with (substance variable label (here: Cisplatin Erbitux)).


Your help is very much appreciated! Thank you in advance!



Tato zpráva a všechny připojené soubory jsou důvěrné a určené výlučně adresátovi(-ům). Jestliže nejste oprávněným adresátem, je zakázáno jakékoliv zveřejňování, zprostředkování nebo jiné použití těchto informací. Jestliže jste tento mail dostali neoprávněně, prosím, uvědomte odesilatele a smažte zprávu i přiložené soubory. Odesilatel nezodpovídá za jakékoliv chyby nebo opomenutí způsobené tímto přenosem.

This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the message as well as all attached documents. The sender does not accept liability for any errors or omissions as a result of the transmission.

-.- --

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