Estimating-Multilevel-Models-using-SPSS--Stata--SA

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

EstimatingMultilevelModelsusingSPSS,Stata,SAS,andRJeremyJ.AlbrightandDaniM.MarinovaJuly14,20101Multileveldataarepervasiveinthesocialsciences.1Studentsmaybenestedwithinschools,voterswithindistricts,orworkerswithinrms,tonameafewexam-ples.Statisticalmethodsthatexplicitlytakeintoaccounthierarchicallystructureddatahavegainedpopularityinrecentyears,andtherenowexistseveralspecial-purposestatisticalprogramsdesignedspecicallyforestimatingmultilevelmodels(e.g.HLM,MLwiN).Inaddition,theincreasinguseofofmultilevelmodelsalsoknownashierarchicallinearandmixedeectsmodelshasledgeneralpurposepackagessuchasSPSS,Stata,SAS,andRtointroducetheirownproceduresforhandlingnesteddata.Nonetheless,researchersmayfacetwochallengeswhenattemptingtodeterminetheappropriatesyntaxforestimatingmultilevel/mixedmodelswithgeneralpurposesoftware.First,manyusersfromthesocialsciencescometomultilevelmodelingwithabackgroundinregressionmodels,whereasmuchofthesoftwaredocumenta-tionutilizesexamplesfromexperimentaldisciplines[duetothefactthatmultilevelmodelingmethodologyevolvedoutofANOVAmethodsforanalyzingexperimentswithrandomeects(Searle,Casella,andMcCulloch,1992)].Second,notationformultilevelmodelsisofteninconsistentacrossdisciplines(Ferron1997).ThepurposeofthisdocumentistodemonstratehowtoestimatemultilevelmodelsusingSPSS,StataSAS,andR.Itrstseekstoclarifythevocabularyofmultilevelmodelsbydeningwhatismeantbyxedeects,randomeects,andvariancecomponents.Itthencomparesthemodelbuildingnotationfrequentlyemployedinapplicationsfromthesocialscienceswiththemoregeneralmatrixnotationfound1Jeremywrotetheoriginaldocument.DaniwrotethesectiononRandrewrotepartsofthesectiononStata.2inmuchofthesoftwaredocumentation.Thesyntaxforcenteringvariablesandestimatingmultilevelmodelsisthenpresentedforeachpackage.1VocabularyofMixedandMultilevelModelsModelsformultileveldatahavedevelopedoutofmethodsforanalyzingexperi-mentswithrandomeects.Thusitisimportantforthoseinterestedinusinghierar-chicallinearmodelstohaveaminimalunderstandingofthelanguageexperimentalresearchersusetodierentiatebetweeneectsconsideredtoberandomorxed.Inanidealexperiment,theresearcherisinterestedinwhetherornotthepresenceorabsenceofonefactoraectsscoresonanoutcomevariable.2Doesaparticularpillreducecholesterolmorethanaplacebo?Canbehavioralmodicationreduceaparticularphobiabetterthanpsychoanalysisornotreatment?Thefactorsintheseexperimentsaresaidtobexedbecausethesame,xedlevelswouldbeincludedinreplicationsofthestudy(MaxwellandDelaney,pg.469).Thatis,theresearcherisonlyinterestedintheexactcategoriesofthefactorthatappearintheexperiment.Thetypicalmodelforaone-factorexperimentis:yij=+ j+eij(1)wherethescoreonthedependentvariableforindividualiisequaltothegrandmean2Intheparlanceofexperiments,afactorisacategoricalvariable.Thetermcovariatereferstocontinuousindependentvariables.3ofthesample(),theeect ofreceivingtreatmentj,andanindividualerrortermeij.Ingeneral,somekindofconstraintisplacedonthealphavalues,suchthattheysumtozeroandthemodelisidentied.Inaddition,itisassumedthattheerrorsareindependentandnormallydistributedwithconstantvariance.Insomeexperiments,however,aparticularfactormaynotbexedandperfectlyreplicableacrossexperiments.Instead,thedistinctcategoriespresentintheexper-imentrepresentarandomsamplefromalargerpopulation.Forexample,dierentnursesmayadministeranexperimentaldrugtosubjects.Usuallytheeectofaspecicnurseisnotoftheoreticalinterest,buttheresearcherwillwanttocontrolforthepossibilitythatanindependentcaregivereectispresentbeyondthexeddrugeectbeinginvestigated.Insuchcasestheresearchermayaddatermtocontrolfortherandomeect:yij=+ j+ k+( )jk+eij(2)where representstheeectofthekthleveloftherandomeect,and representstheinteractionbetweentherandomandxedeects.Amodelthatcontainsonlyxedeectsandnorandomeects,suchasequation1,isknownasaxedeectsmodel.Onethatincludesonlyrandomeectsandnoxedeectsistermedarandomeectsmodel.Equation2isactuallyanexampleofamixedeectsmodelbecauseitcontainsbothrandomandxedeects.Whilethenotationinequation2fortherandomeectisthesameasforthexedeect(thatis,botharedenotedbysubscriptedGreekletters),animportantdierenceexistsinthetestsforthedrugandnursefactors.Forthexedeect,the4researcherisinterestedinonlythoselevelsincludedintheexperiment,andthenullhypothesisisthattherearenodierencesinthemeansofeachtreatmentgroup:H0:1=2=:::=jH1:j6=j0Fortherandomeectinthedrugexample,theresearcherisnotinterestedintheparticularnursespersebutinsteadwishestogeneralizeaboutthepotentialeectsofdrawingdierentnursesfromthelargerpopulation.Thenullhypothesisfortherandomeectisthereforethatitsvarianceisequaltozero:H0:2 =0H1:2 0Theestimatedvarianceisknownasavariancecomponent,anditsestimationisanessentialstepinmixedeectsmodels.Oftentimesinexperimentalsettings,therandomeectsarenuisancesthatne-cessitatestatisticalcontrols.Intheaboveexample,theeectofthedrugwastheprimaryinterest,whereasthenursefactorwaspotentiallyconfoundingbuttheoreti-callyuninteresting.Itisnonethelessnecessarytoincludetherelevantran

1 / 35
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功