Date: Tue, 26 Mar 1996 12:43:08 EDT
Reply-To: pss@VMS.CIS.PITT.EDU
Sender: "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From: pss@VMS.CIS.PITT.EDU
Organization: University of Pittsburgh
Subject: Re: Creating duplicate set of variables
jpjohn@ix.netcom.com (James P. (Pat) Johnson) writes:
> I am writing a syntax file to score a questionnaire which has 240
> items (Q1 to Q240). The items are scored 1 for true and 2 for false.
> I want to preserve these items and create a duplicate set of
> additional variables, say QQ1 to QQ240 with identical values as the
> first set.
The way to do it would be:
DO REPEAT R = QQ1 TO QQ240 /X = Q1 TO Q240.
COMPUTE R = X.
END REPEAT.
Phil Sidel
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Philip S. Sidel Academic Computing Specialist:
2R26 Forbes Quad Research Computing Support Group
University of Pittsburgh Coordinator:
Pittsburgh, PA 15260 SPSS, LIMDEP, STATA, SYSTAT, EQS, TSP
Phone: (412)648-7384 email: sidel@vms.cis.pitt.edu
sidel+@pitt.edu
|