LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (September 1999)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 15 Sep 1999 18:35:20 +0100
Reply-To:     Hauke Petersen <hpetersen@ASV.DE>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Hauke Petersen <hpetersen@ASV.DE>
Subject:      Re: automatic dichotomizing of categorial MRS
Comments: cc: Martin Feldkircher <m.feldkircher@OGILVYONE.DE>

I did not try this one out, but usually i use the following syntax (if posse01n to posse30n are not consecutive in your dataset, you would have do list these variables like in your count-satement):

vector possed(79). do repeat x= posse01n to posse30n. compute possed(x) = 1. end repeat.

recode possed1 to possed79 (1=1) (else=0).

hope it helps, Hauke

> ---------- > Von: Martin Feldkircher[SMTP:m.feldkircher@OGILVYONE.DE] > Gesendet: Mittwoch, 15. September 1999 12:08 > An: SPSSX-L@VM.MARIST.EDU > Betreff: automatic dichotomizing of categorial MRS > > i got 30 variables, each got 79 categories. they are categorial variables > of a Multi Response Set. I want tu build new dichotomeous varaibles for > each of the categories (in total 79 dummies). a person who choose category > 1 from any of the 30 variables shall get a "1" in the new dummy variable > posse01d , a person who choose category 2 from any of the 30 variables > shall get a "1" in the new dummy variable posse02d , etc. > i solved that problem with the following command that involved lot of > copy'n'paste work. > > count > posse01d > =posse01n posse02n posse03n posse04n posse05n posse06n posse07n posse08n > posse09n posse10n posse11n posse12n posse13n posse14n posse15n posse16n > posse17n posse18n posse19n posse20n posse21n posse22n posse23n posse24n > posse25n posse26n posse27n posse28n posse29n posse30n (1) > /posse02d > =posse01n posse02n posse03n posse04n posse05n posse06n posse07n posse08n > posse09n posse10n posse11n posse12n posse13n posse14n posse15n posse16n > posse17n posse18n posse19n posse20n posse21n posse22n posse23n posse24n > posse25n posse26n posse27n posse28n posse29n posse30n (2) > [..........] > /posse79d > =posse01n posse02n posse03n posse04n posse05n posse06n posse07n posse08n > posse09n posse10n posse11n posse12n posse13n posse14n posse15n posse16n > posse17n posse18n posse19n posse20n posse21n posse22n posse23n posse24n > posse25n posse26n posse27n posse28n posse29n posse30n (79). > > > i am sure that there will be an easier solution with vector'n'loop > statements. > any suggestion? > > mf >


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