Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with building an SPSS file

3 views
Skip to first unread message

sophy

unread,
Dec 9, 2009, 1:30:48 AM12/9/09
to
I have a large SPSS data file with over 800 000 records (virsion
17). Each record represents children's visits to local clinic for last
3 years (so the same child can appear in different records different
number of times - can be identified by ID number). I need to re-build
the file so each record will represent a child (and not a visit) and
all his visits will be represented as variables. How can I do this?

Bruce Weaver

unread,
Dec 9, 2009, 8:27:32 AM12/9/09
to

Look up the CASESTOVARS command. You could also look at the tutorial
on UCLA's SPSS data management page.

http://www.ats.ucla.edu/stat/Spss/topics/data_management.htm

Look for "Reshaping data long to wide in versions 11 and up".

--
Bruce Weaver
bwe...@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/Home
"When all else fails, RTFM."

0 new messages