Posts filed under 'Questions and answers'

Combine two variables into one

2

One of the many questions we got the last few days was from Dana. Dana asked us a question about combining two variables into one:

“Hello, I need to essentially combine two variables that have been
standardized into one new variable.  Data that is present in one variable
is missing on the other and vice versa.  I tried making a new variable and
then recoding missing data so it would pull in the values from the other
variable.  Can you only recode missing values into numbers, or can I pull
an entirely different variable into it?  Basically, how do I combine two
variables into one?  Is there an easier way? Thanks!”

6 comments April 10th, 2007 andris

Does SPSS remember the formula used in Compute?

This week Eamonn send us the following question about the Compute function:

When using transfor/compute - say to create a construct from a set of Likert
Scale items - does SPSS save the formula used to create the new variable, or
is it lost once you compute?

SPSS does not save the formula in your data file. It does keep the formula in mind if you keep SPSS open. So if you want to use the same formula again, but than with different variables for example, you can open the Compute screen again, and there your old formula is. But if you close SPSS and open it again, the formula will be gone.

4 comments January 19th, 2007 andris

Happy holidays!

From Lawrence, Will, Mark and Andris (SPSSlog.com) a Merry Christmas and happy 2007 for all of our visitors! Since the start of SPSSlog, we’ve answered over 200 questions on SPSS… we hope to help even more SPSS users in next year.

Technorati: Posts that contain Happy Holidays per day for the last 30 days.
Technorati Chart

If you need something to do during your time off, try out the great online graph service Swivel, or try making the coolest SQUARE PIE-CHART graphs with SPSS! Post all your creations in our comments…

Our new year’s intention: use SPSS more, everyday! ;)

Add comment December 22nd, 2006 andris

Recode missing values with Syntax

3.5

Today, Aleksandar sent us the following question:

“I’m having problems to recode system missing values to 0 with syntax
editor. How can I do that?”

In SPSS Syntax, missing values can be addressed via the keywords “sysmis” or “missing”. For this explanation we assume that in addition to the values 1 and 2, there are also values 3 and 4 which are defined as missing values. Please find some syntax below and an explanation of what they do. var2 stands for the variable name we are recoding.

RECODE var2 (missing = 3).

1 comment December 7th, 2006 andris

Coding Ordinal Data

This week we got a question from Mark Mortensen regarding Coding Ordinal Data.
“What is the best way to set up a variable and code ordinal data when it is generated by a question such as “Rank the following three items using 1 as the most use, 2 the next most use, and three, the least use?”
For this query we can consider the following example. In the following data there is three different 4 wheelers brands. The respondent gives the opinion about usage on their brand like most often, second most often and least often. It is captured brand wise. Using this syntax easily we can find out which brand is most often, second most often and least often. This recoding we can do vise-versa based on data capturing.
 

2 comments November 3rd, 2006 Lawrence

Recoding in SPSS

Hi SPSSlog users, 

The following link is the simple example for recoding in SPSS and it’s explaining the purpose also. After reading this content, I welcome more discussion on this. At the end all the SPSS Log users will get more information about recoding in SPSS with more examples. In SPSS we have two different method of recoding (Recode into same variable and Recode into Different variable). We will discuss the features and utilization of these two functions from different applications. 

 

www.cariboo.bc.ca/ae/geography/courses/270/softwareguides/recodingspss.pdf

Thanks,

Lawrence

 

3 comments November 2nd, 2006 Lawrence

Create an overall variable / rating from a number of ratings / variables

This week Cameron send us the following question:

“I am writing about the stereotypes that people hold in regard to public service employees. Participants are required to rate a private, state, federal and local employee on a number of ratings such as efficiency. It is a 7 point Likert scale.

How do I obtain an overall rating score for each participant for each level of employee?”

Cameron, I assume you have already got your data into SPSS. I also assume you have put each score in a different variable and scored every variable with a figure from 1 to 7. To create an overall rating, you can use the Compute function. You can find this under Transform -> Compute.

1 comment September 29th, 2006 andris

How to export your charts in high resolution

2

We got a question from Lucinda, who wants to publish her results, but has a problem with the resolution of the output. She asked us:

“I have made some interactive line graphs that have been submitted to a scientific journal for publication. The journal editor says that the resolution of the graphs is not high enough to print. Do you know how I can increase the resolution of the graphs?”

You can export your graphs into different file formats:

1. Rightclick your chart (in the Output window)

2. Choose Eport, which gives you the following pop-up screen:

4 comments September 19th, 2006 andris

Error: The attempt to save the data file has failed because the disk is full, an I/O error has occurred, the variable dictionary is invalid, or the task was interrupted.

2.5

We received a question from Ilan Shrira, who got an error while saving a file:

I just bought a 120 gigabyte external hard drive, and whenever I try to save an SPSS file
that’s more than 4 gigabyte onto it, it stops and says “Warning #5322, The attempt to save the data file has failed because the disk is full, an I/O error has occurred, the variable dictionary is invalid, or the task was interrupted”

I didn’t have any trouble saving 2 or 3 gigabyte files of the save type. Is is possible that there’s some other kind of glitch in my file.”

9 comments August 23rd, 2006 andris

Linear regression

3

We get a lot of questions about regression analysis. We have dug into this and decided to write a post about it, so we can help everyone with this.

You do a regression when you assume that a variable is influencing another one, like in the following example: We assume that cars that run on Diesel have higher costs.

To test this assumption, we run a Linear Regression in SPSS. Take the following steps:

- Define your dependent and independent variable. In our example Fuel is the indepent variable and Costs is the dependent one.
- Click Analyze
- Go to Regression and click Linear
- Click “Fuel” into the Independent variable field, and “Costs” into the Dependent variable field.

5 comments August 21st, 2006 andris

Previous Posts


Calendar

July 2008
M T W T F S S
« Oct    
 123456
78910111213
14151617181920
21222324252627
28293031  

Posts by Month

Posts by Category