|
Dear List members,
I want to convert a data file from excel to spss. I have a large number of cases (>1000) with 120 variables for each case. The data is arranged in the excel file with 1 row for every variable, so that every subject has 120 rows (row1 to row 120 for subject 1, rows 121-240 for subject2, etc.). I want to create a data file that would look like a regular data file- i.e.: all 120 variables presented in the same row. How do I do it?
Many thanks
Liat Lev-Shalem
-- ליאת לב-שלם עיבודים סטטיסטיים וסיוע מחקרי טלפון: 054-5452848 פקס: 03-9229807 |
|
Many thanks Jason
haven't tried it yet but it looks like a good solution for my problem.
All the best,
Liat
On Tue, Jun 16, 2009 at 11:25 AM, Jason Ferris <[hidden email]> wrote:
-- ליאת לב-שלם עיבודים סטטיסטיים וסיוע מחקרי טלפון: 054-5452848 פקס: 03-9229807 |
|
Dear Liat
There is another way. First read your Excel data into SPSS
just as it is. Then in SPSS calculate a unique id for each subject (if you
haven't already got one).
Something like COMPUTE id = mod($casenum, 120) should do that
if you need to.
Then use the Data Restructure Wizard in SPSS (available by
clicking Data then Restructure) to transpose the rows to columns - you'll want
to select the dialogue "Restructure selected cases into variables" on the front
page of the Wizard, and follow the screens from there.
Garry Gelade
Business Analytic Ltd From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Liat Lev-Shalem Sent: 16 June 2009 12:28 To: [hidden email] Subject: Re: converting data from excel to spss Many thanks Jason
haven't tried it yet but it looks like a good solution for my
problem.
All the best,
Liat
On Tue, Jun 16, 2009 at 11:25 AM, Jason Ferris <[hidden email]>
wrote:
-- ליאת לב-שלם עיבודים סטטיסטיים וסיוע מחקרי טלפון: 054-5452848 פקס: 03-9229807 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4158 (20090616) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |
| Free forum by Nabble | Edit this page |
