Date: Mon, 19 Aug 2002 23:33:02 +1000
Reply-To: Sabina Schnelle <Sabina@work.asn.au>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Sabina Schnelle <Sabina@work.asn.au>
Subject: restructure / generate variables
Content-Type: text/plain; charset="iso-8859-1"
Hello fellow listers.
I have another very basic question - (too simple to be answered in manuals)
I need to restructure a data set and create cases; I couldn't work out a syntax that works that displays data in another file
My original data set has the following structure (varF and varM are simply gender frequencies)
varAge varF varM
20 1 2
21 0 0
22 1 0
23 1 1
24 0 1
but should ideally look like
varID varAge varGender (F=0,M=1)
001 20 0
002 20 1
003 20 1
004 22 0
005 23 0
006 23 1
007 24 1
As always, any help is greatly appreciated,
Sabina
|