Showing posts with label SPSS. Show all posts
Showing posts with label SPSS. Show all posts

Saturday, February 18, 2012

Importing multiple Excel columns of var names and values into SPSS

This gotta be the worst post title I have ever created in my life so far.

So, after the last posting, I moved on to the task of trying to import the dataset into SPSS with the problem in mind... on this spreadsheet, the values of column G, I, K, M are variable names while numerical values in column H, J, L, N alike are the values the respective variables associated a specific participant.  In total, there are something like 20 participants.... (See image below)

I was just gonna go and do that copying, transposing and pasting etc.

Yes, giving lazy buns a task to complete, they often spend more time trying to find the short-cut than if they had just done things the KISS (keep it simple and stupid) way.

Yet, I tried to find the most efficient way-- though did explore a bit with different software.

 
The million-dollar question is: "How do you convert an Excel spreadsheet looking like the above into an SPSS file like below with all 941 variable names accurately created and data associated with each id imported?"



This one I had to figure out myself since, shame on my, my SQL skills are rusty and hadn't done much of VB script stuffs etc in my entire life.  In addition, it is difficult to google up solutions for a problem when I am not even quite sure how to put the problem in words.

Ended up, the solution I found was simple though exploration did take a little time.

Essentially, use the Pivot table function to turn your data to look like the following.  I had to create five sets of Pivot tables to get all data printed out. 


Since you can not get rid of the first 3 rows in the Pivot table, what I did was to copy everything I need from the fourth row down to a different spreadsheet and used SPSS to import that new spreadsheet with the first row as the variable names.

After all 5 spreadsheets were imported into SPSS, the next was simple.  Use the Merge file option under Data to add variables.  Once the add variable window is open, make sure that you assign a key variable, which is correctly sorted, so that values of the added variables would be linked to the correct id.  It was not an issue for me since the values were already in ascending order.

Select "Add Variables under "Merge Files"
Make sure you define the key variable (e.g., Id) and make sure the values are sorted.
One last question, how did someone like me who had never used Pivot table to get it set up so fast?

If you are like me, well, I actually a detour by going through MS Access 2010 since I know how to pull the Pivot Table view out in Access.  So I imported the spreadsheet containing all data as a table in an access database, get to the pivot table view, get the data printed out in the table correctly and export it back to Excel.

Though stupid... it surely was much faster than me having to update myself on the entire Excel Pivot Table chapter... 8-O lol




Though nothing elegant, now that I got it out once, would be no sweat next time....

Hope it helps you, too!

BTW, please let me know if you need help playing with them pivot tables... put up out some tutorial kinda thing upon request.

(Messed up on one set of values and finally got the complete file compiled... with a total of 1176 variables. 8-X)

Tuesday, February 7, 2012

SPSS Error: text value unmappable in the current server locale

Had this problem earlier today when trying to use SPSS to open some files that belonged to someone else.

The error message was: "Text value unmappable in the current server locale."

It didn't occur when I tried to open the example files that came with SPSS though and I had no problem creating my own file.


Then, after googling around apparently, I realized that it has something to do with the Character setting.  All that you have to do is to go under "Edit," select "Option" and change the character coding to unicode.  You will have some problems changing this setting because the options will be greyed out if an old file is opened.  Thus, start a new SPSS file, close all other files and go from there.


Voila, c'est ça. Bon chance.

Wednesday, January 18, 2012

SPSS 19 Side-by-side configuration error

After I installed SPSS 19, I forgot to check and see whether it was working.  When launching it this morning, I got the following error message- though in traditional Chinese.



In English, this error message is something like the following: "The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command line sxstrace.exe for more detail."

Apparently, this is a pretty common problem.  So said the experts, the reason why it happened could be that the Microsoft Visual C++ redistributables did not execute and install properly during installation of the SPSS. One way to work around this issue is by post-install the package.

Since I had installed the 64bit version, I did a search using the win 9 search function for "C:\Program Files\IBM\SPSS\Statistics\19\VC8\Vcredist_x64.exe."


Run Vcredist_x64.exe as an administrator by right-clicking on the item


Voila!  So the problem got resolved for me, at least.  Good luck to you, too!  If it still doesn't work for you, please check the link I provide belong for additional troubleshooting tips.

.


Please check the following link for more detailed information

http://support.onthehub.com/onthehub/topics/what_do_i_do_about_a_side_by_side_configuration_error

or

http://8help.osu.edu/4349.html

SPSS 19 Network install for the first time.

Tried out the installing SPSS using Network license for the first time yesterday since I have only done site license in my life.  Thought I'd take some screenshot of it.

The only difference between the two methods is that, with network license, you put the IP or the manager name in the text box.

Friday, July 1, 2011

SPSS 19 on Windows 7

Ran SPSS 19 for the first time on this Windows 7 x64 machine...

Didn't nothing fancy... I imported a dataset from a text file and ran some simple stats to test the software out... frequency, descriptive, correlation, ANOVA.... and even got some graphics generated!

Everything seems to be smooth and fine.

So far-- so good... based on the trial run.

Will let you know how I like this version after I run it a few more time with real datasets.... for the purpose of data analyses...

The best thing about SPSS 19 is that... it is back to be called SPSS.  lol

Apparently, there are some new features that I have not played with before... and would like to test them out in the near future.

Wednesday, September 8, 2010

Software programs compatible with Windows 7 64 bit

The machine I am using now runs Windows 7 64 bit...

Following are some of the programs I have been using without any problem...

  1. Skype 4.2.0.169
  2. Picasa 3
  3. NVivo 8 sp 4
  4. PASW 18 (SPSS)
  5. Office 2010
  6. McAfee 8.7.0i
  7. CS3
  8. Sorenson Squeezer 4.0
  9. Quicktime 7 (However, I did have some problem earlier on when trying to edit some movie files. Since I have only access to this Windows 7 64 bit machine, can't tell you whether the problem is really associated with the OS version.
  10. Universal USB Installer
  11. Canon utilities such as ZoomBrowser Ex and PhotoStitch
  12. Browsers
  • Internet explorer
  • Chrome
  • Firefox


Monday, December 21, 2009

Windows 7 and software competibility

I will be continuously updating this list as the time goes on... (started 10/30/2009 last updated 12/21/2009)


The following software programs run on windows 7

Data Analysis
  1. SPSS 17
  2. PASW 18 for PC (Formally known as SPSS)
  3. SPSS SmartViewer 15.0
  4. SAS 9.2
  5. Mplus 4
  6. Nvivo 8 sp4
Browsers
  1. Firefox
  2. Opera
  3. SeaMonkey 2.0
  4. K-Meleon
  5. Safari
  6. IE
  7. Chrome
Office tools
  1. Office 2007
  2. Endnote X2
  3. OpenOffice 3.1
File Transfer
  1. WinSCP 3.7.4
Internet Security Software
  1. McAfee 8.7
  2. Malwarebytes's Anti-malware
Multimedia
  1. Creative Suite 4 (e.g., Adobe Acrobat Pro, Photoshop, Dreamweaver)
  2. Snagit 7.2.1
  3. Captivate 4
  4. iTunes 9.0.2.25
  5. Windows Media Player 12.0.7600.16415
  6. Sorenson Squeeze 6 (trial version)
  7. Sorenson Squeeze 4
  8. Quicktime Pro 7


Diagramming and concept mapping software
  1. Inspiration 8
  2. OrgChart (Trial version)

Other
  1. Meeting Maker 6.0
CD/DVD burning software
  1. iTunes 9.0.2.25
  2. Windows Media Player 12.0.7600.16415
  3. Roxio Creator DE
Software programs do not run on windows 7
  1. nvivo 8
  2. McAfee 8.5

Tuesday, December 8, 2009

SPSS SmartViewer 15.0

Since newer versions of SPSS seem to have problems reading old SPSS files, I had to install SPSS SmartViewer 15.0 to read old output files...

In general, it is ok... on Windows 7 except for I did see error messages coming up left and right at points.

Wednesday, November 25, 2009

PASW 18 on Mac

PASW (SPSS) 18 installation disk is for both PC and Mac.

I had no problem at all installing and running the program on Windows XP and Windows 7.

However, I had some problem running it using Mac... presumably... it could only run on Macs when it has intel inside....

It worked on a Mac with the following spec:

Model Name: iMac
Model Identifier: iMac8,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.8 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 6 MB
Memory: 2 GB
Bus Speed: 1.07 GHz


It failed to work on a Mac with the following spec although it did go through the whole installation process:


Model Name: iMac G5
Model Identifier: PowerMac8,2
Processor Name: PowerPC G5 (3.1)
Processor Speed: 2 GHz
Number Of CPUs: 1
L2 Cache (per CPU): 512 KB
Memory: 1 GB
Bus Speed: 667 MHz