Professional Documents
Culture Documents
FittingLinearRegressioninSPSSandOutput Interpretation
th Tuesday26 August
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
2.
3.
4.
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
5.
6.
ReruntheExplorecommandandstudytheresultsagain.Theresultshave changedbyalargeamount.
7.
Wecaninvestigatetherelationshipbetweenweightforageandbirthweight bylookingatthecorrelationbetweenthetwovariables.Correlationisusually calculatedbetweentwocontinuousvariables.Acorrelationof1indicates perfectpositivecorrelation asonevariableincreasestheotheralsoincreases atexactlythesamerate,whileacorrelationof1indicatesperfectnegative correlation asonevariableincreasestheotherdecreasesatexactlythesame rate.Acorrelationof0indicatesnolinearrelationshipbetweenthetwo variables. GotoAnalyse|Correlate|Bivariate. Thefollowingboxappears.
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
Birthweight (kilos3dec.)
** .109
1.000
8.
Itisnowtimeforthesimplelinearregression.SelectAnalyze|Regression| Linear.Thelinearregressiondialogueboxappears(seenextpage).
9.
10.
ClickOK.
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
11.
Thefollowingoutputisproduced:
b VariablesEntered/Removed
Model 1
Variables Removed
Method .Enter
a.Allrequestedvariablesentered. b.DependentVariable:Wt/AStandarddeviations
ModelSummary Model R
a
RSquare
AdjustedR Square
df 1 835 836
F 9.999
Sig.
a .002
a.Predictors:(Constant),Birthweight(kilos3dec.) b.DependentVariable:Wt/AStandarddeviations
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
Thefinalbox,labelled coefficients givestheresultsoftheanalysis.Eachofthe columnsisexplainedbelow: UnstandardizedCoefficientsB:Thisshowsthevaluesofthenumbersinthe linearregressionequation. o Theconstanttermis 146.2 indicatingthatachildwhoweighs0gatbirth (impossible,butthisisthetheory)willbe 146.2standarddeviationsbelow themeanfortheirweightforage. o Therelationshipbetweenbirthweightandweightforageis0.017.Forevery gramincreaseinbirthweight,weightforageincreasesby0.017. UnstandardizedCoefficientsStd.Error:Thisisthestandarderrorforthe coefficient itisusedinthecalculationofsignificance StandardizedCoefficientsBeta:Donotworryaboutthis! t:Thisisthettesttoseeifthecoefficientsaresignificantlydifferentfrom0.A valueover1.96indicatessignificanceatthe5%level. Sig.:Thisisthepvalue.If itisunder0.05thenthevariableissignificant.The valuewehavehereis0.002,whichishighlysignificant.Thereisasignificant relationshipbetweenbirthweightandweightforage.
1.
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
3.
Wewillnowrecreatethisanalysisbyconductinglinearregression.Butfirst, wewillneedtocreatedummyvariablesforthewealthindex Fournewvariablesneedtobecreated,aswealthhasfivecategories (rememberthatthenumberofdummyvariablesisneededisonelessthanthe numberofcategories!) Goto Transform|RecodeintoDifferentVariables Place Wealthindex intothecentralbox.Ontherighthandside,under OutputVariable,enterinPoorestintothenamevariableandlabelthis DummyvariableforPoorestWealthQuintile.Click Change.
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
Clickon OldandNewValues Thepoorestwealthquintileislabelled1intheoriginalvariable.Therefore wewanttokeepthislabelbutseteverythingelseto0 Inthe OldValue:Value boxtype1andintheNewValue:Value box alsotype1.Click Add. Nowmakeallothervaluestobezero.ClickonAllothervaluesatthe bottomofthelefthandboxandenter0intotheNewValue:Value.Click Add. Anymissingvalueneedstostaymissing,soclickon Systemoruser missing onthelefthandside,andclickon Systemmissing ontheright handside.Click Add. Theboxshouldlooklike:
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
4.
Younowneedtocreatethreemoredummyvariablesforothercategoriesof wealth.Todothis,goto Transform|RecodeintoDifferentVariables andfollowtheprocessabovefor Poorer,Middleand Richer.Eachtime youwillneedtorecodeadifferentvaluetobethedummy(forinstancefor Middle,allthosewitha3intheoriginaldatasetneed toberecodedasa1, andallothervariablesasa0.Pleaseaskifyouareconfused!
Alternatively,usethesyntaxtodothisautomatically.Afileisincludedonthe websiteforyoutousetocreateyourdummyvariables.
5.
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
6.
Fourboxesareproduced,asbefore.Belowisthefinalbox,labelled Coefficients.
Coefficients
a
UnstandardizedCoefficients Model 1 (Constant) Dummyvariableforpoorest wealthquintile Dummyvariableforpoorer wealthquintile Dummyvariableformiddle wealthquintile B 68.284 67.262 45.381 42.576 Std.Error 6.173 7.242 7.707 8.043 8.537
Standardized Coefficients Beta t 11.062 .257 .153 .132 .073 9.288 5.888 5.294 3.068 Sig. .000 .000 .000 .000 .002
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
10
Coefficients
UnstandardizedCoefficients Model 1 (Constant) Dummyvariableforpoorest wealthquintile Dummyvariableforpoorer wealthquintile Dummyvariableformiddle wealthquintile Dummyvariableforricher wealthquintile Birthweight(kilos3dec.) a.DependentVariable:Wt/AStandarddeviations B 119.658 83.830 37.202 42.243 39.684 .018 Std.Error 18.412 14.066 12.418 12.494 11.140 .005
Standardized Coefficients Beta t 6.499 .220 .115 .130 .138 .120 5.960 2.996 3.381 3.562 3.491 Sig. .000 .000 .003 .001 .000 .001
Theresultshavechanged!Partlythisisduetotherebeingadifferentsample beingused(onlythosewithabirthweightANDawealthquintileareincluded intheanalysis)butitisalsoduetohavingbothvariablesinthemodelatone time. Allthevariablesaresignificantinthemodelstill,althoughaftertaking accountofbirthweight thedifferencebetweenrichestandpoorestactually increases.Thisshowsthateventhoughbirthweightissignificantlyrelatedto weightforage,thereisaverylargeeffectofwealthafterthebirthonweight forage.
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
11
4.
Exercises
1. ConductmultiplelinearregressiononWeightforageStandarddeviations, includingasexplanatoryvariablesbirthweight,wealthindex,urban/ruraland highesteducationalleveloftheparent 2. ConductmultiplelinearregressiononWeightforHeight,usingthesame variablesasin Exercise1.Arethereanyobviousdifferencesthatyoucansee? Whatistherelationshipbetweenwealthandweightforheightafter controllingfortheothervariables?
CentreforGlobalHealth,Population,PovertyandPolicy(GHP3)
12