+ All Categories
Home > Documents > SPSS Exercise 3 - San Jose State University...SPSS Exercise 3 Transforming Variables ... suppose one...

SPSS Exercise 3 - San Jose State University...SPSS Exercise 3 Transforming Variables ... suppose one...

Date post: 19-Mar-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
4
SPSS Exercise 3 Transforming Variables Due: Objective: There are two objectives to this assignment. The first is specific to the assignment and the second is to practice skills learned in previous assignments. 1. Learn logic and process to transform variables using SPSS 2. Practice frequency distribution creation and analysis. Assignment Description: This assignment is to learn how to transform, or recode, variables. The principle is very simple: suppose one asked respondents the following closed ended question with the associated responses: What is your labor force status? 0. Not Applicable 1. Working Fulltime 2. Working Part-time 3. Temporarily Not Working 4. Unemployed 5. Retired 6. In School 7. Keeping House 8. Other 9. No Answer However, it was only necessary to measure the differences between respondents that were working and not working. This could be done easily by transforming the old variable into a new variable with only the categories “Working” and “Not Working.” For our purposes the “Working” category includes those that answered option 1 and 2, the “Not Working” category includes those that answered options 3, 4, 5, 6, 7, and 8. Because the responses 0 and 9 are neither “Working” nor “Not Working” we will keep them in their original state. Following is the procedure to complete this step in SPSS. SPSS Procedure: 1. Open SPSS 2. Run a frequency distribution for variable to be transformed (for this demonstration use “wrkstat”). 3. Verify the numeric values of the attributes for the variable to be transformed. (See SPSS Exercise 1>SPSS Interface>Step 8.). 4. Select Transform>Recode into Different Variables. ” This will; cause a window to popup similar to that in Figure 3.1.
Transcript
Page 1: SPSS Exercise 3 - San Jose State University...SPSS Exercise 3 Transforming Variables ... suppose one asked respondents the following closed ended question with the associated responses:

SPSSExercise3TransformingVariables

Due:

Objective:Therearetwoobjectivestothisassignment.Thefirstisspecifictotheassignmentandthesecondistopracticeskillslearnedinpreviousassignments.

1. LearnlogicandprocesstotransformvariablesusingSPSS2. Practicefrequencydistributioncreationandanalysis.

AssignmentDescription:Thisassignmentistolearnhowtotransform,orrecode,variables.Theprincipleisverysimple:supposeoneaskedrespondentsthefollowingclosedendedquestionwiththeassociatedresponses: Whatisyourlaborforcestatus?

0. NotApplicable1. WorkingFulltime2. WorkingPart-time3. TemporarilyNotWorking4. Unemployed5. Retired6. InSchool7. KeepingHouse8. Other9. NoAnswer

However,itwasonlynecessarytomeasurethedifferencesbetweenrespondentsthatwereworkingandnotworking.Thiscouldbedoneeasilybytransformingtheoldvariableintoanewvariablewithonlythecategories“Working”and“NotWorking.”Forourpurposesthe“Working”categoryincludesthosethatansweredoption1and2,the“NotWorking”categoryincludesthosethatansweredoptions3,4,5,6,7,and8.Becausetheresponses0and9areneither“Working”nor“NotWorking”wewillkeepthemintheiroriginalstate.FollowingistheproceduretocompletethisstepinSPSS.SPSSProcedure:

1. OpenSPSS2. Runafrequencydistributionforvariabletobetransformed(forthis

demonstrationuse“wrkstat”).3. Verifythenumericvaluesoftheattributesforthevariabletobetransformed.

(SeeSPSSExercise1>SPSSInterface>Step8.).4. SelectTransform>RecodeintoDifferentVariables.”Thiswill;causea

windowtopopupsimilartothatinFigure3.1.

Page 2: SPSS Exercise 3 - San Jose State University...SPSS Exercise 3 Transforming Variables ... suppose one asked respondents the following closed ended question with the associated responses:

5. SelectthevariabletobetransformedandmoveittoNumericVariable->OutputVariablepanel.SeeFigure3.1.

6. Inthethirdpanelunder“OutputVariable”givethevariableabouttobecreatedanewname.Usethebaseoftheoriginalvariablenameandaddan“R”totheendofit(egwrkstatbecomeswrkstatR).SeeFigure3.1.

7. Clickthe“Change”buttonandthenthe“OldandNewValues”buttoninthebottomofthesecondpanelandanewwindowwillpopupsimilartothatinFigure3.2.

8. Inthe“OldValue”panelontheleftsideofthewindowandenterthenewvaluesassignedtotheoldvaluesontherightsideofthewindow“NewValue.”Afterenteringeacholdandnewvaluepresstheaddbuttononthepanelontheright.Whenfinished,thewindowshouldlooksimilartothatthatinFigure3.2.Notethatitispossibletotransformonevalueatatimebyclickingthe“Value”button,ortoenteraseriesofsequentialvaluesusingthe“Range”button.

9. Afterallvalueshavebeenenteredpress“Continue.”DoingthiswillreverttothescreeninFigure1,presstheokaybutton.ThiswillcauseanOutputwindowtopopup,ignorethisfornowandgotothedatasetonVariableView.

10. Thenewvariablecreatedisatthebottomofthedatasetbutnoticethatinformationismissinginthe“Label,”“Value,”and“Missing”cells.

a. Clickinthe“”Label”cellandenteraroughapproximationofthequestionbeingaskedforthenewvariable.Inthisexamplesomethinglike“RecodedLaborForceStatus”willsuffice.

b. Clickinthe“Value”cellandawindowsimilartotheoneinSPSSExercise1>Figure1.2willpopup.Keepinmindthatthenumericvalueisinsertedinthe“Value”boxandinthe“Label”boxthedescriptionofthevalueisinserted.Inthisexample“1”wouldbeenteredinthe“Value”boxand“Working“inthe“Label”box.

c. Clickinthe“Missing”cell,select“DiscreteMissingValues”buttonandenterthevaluesassociatedwiththe“Missing”attributes,inthiscase“0”for“NAP”(NotApplicable)and“9”for“NA”(NoAnswer).

11. Runafrequencydistributionforthenewvariable,wrkstatR.Verifythatthetransformationwascompletedcorrectlyandthatthenewvariableisproperlylabeled.

12. Savethedataset.Assignment:

1. Transformthevariable“Age”intoanewvariablethathastheagecategories“18-35”,“36-65”,and“66-89”where18-35=1,36-65=2,and66-89=3.

2. Transform“Relig”intoanewvariablewith“Christian”and“NonChristian”attributes.Christiancanhavethenewvalue1andNon-Christianthenewvalue2.ForthepurposeofthisassignmentProtestants,Catholics,OrthodoxChristians,andChristianareChristians.Everyotherattribute(ExcludingDK,NA,andNAP)willberecodedasNonChristians

Page 3: SPSS Exercise 3 - San Jose State University...SPSS Exercise 3 Transforming Variables ... suppose one asked respondents the following closed ended question with the associated responses:

3. TransformthevariablesEMPATHY2,EMPATHY4,andEMPATHY5intonewvariableswherethedirectionofthevaluesis“flipped.”

a. YouwillnoticethatfortheotherfourempathyvaluesthehigherthevaluethemoreempatheticapersonisyetforthevariablesEMPATHY2,EMPATHY4,andEMPATHY5theoppositeistrue.

b. Recodethisvariablesothatahighnumberindicatesahighlevelofempathy.Thatis,themoreempatheticaperson’sresponseisthehighertheirscoreonthatitemshouldbe.

c. Ifanattributeisvaluedas5itshouldberecodedas1(if4=2,3=3,2=4,1=5).

d. 1canbelabeled“VeryLowEmpathy,”2=“LowEmpathy,”3=“Neutral,”4=“HighEmpathy,”and5=VeryHighEmpathy.”

4. MakeafrequencydistributiontableforthevariableAgeR.5. Writeareportwhereyou:

a. Describewhatitmeanstotransform/recodeavariable.b. Discussanyproblemsencounteredwhilecompletingtheassignment

andhowtheywereovercome.c. AnalyzethetablemadeforAgeRd. Includetheoutputandthetableproduced

Page 4: SPSS Exercise 3 - San Jose State University...SPSS Exercise 3 Transforming Variables ... suppose one asked respondents the following closed ended question with the associated responses:

Figure3.1.

Figure3.2.


Recommended