资源描述:
《Margins command for students 2013.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ACADEMICYEAR2012/2013UniversitàdegliStudidiMilanoGRADUATESCHOOLINSOCIAL,ECONOMICANDPOLITICALSCIENCESAPPLIEDMULTIVARIATEANALYSISLuigiCuriniluigi.curini@unimi.itDonotquotewithoutauthor’spermissionMarginscommandmarginsisapostestimationcommand,acommandforuseafteryouhavefitamodelusinganestimationcommand
2、suchasregress,orusingalmostanyotherestimationcommand.marginsestimatesandreportsmarginsofresponsesandmarginsofderivativesofresponses,alsoknownasmarginaleffects.Amarginisastatisticbasedonafittedmodelinwhichsomeoforallthecovariatesarefixed.Marginaleffectsarechangesintheresponseforchangeinacovariate,wh
3、ichcanbereportedasaderivative,elasticity,orsemielasticity.ObtainingmarginsofresponsesAmarginisastatisticbasedonafittedmodelcalculatedoveradatasetinwhichsomeoforallthecovariatesarefixedatvaluesdifferentfromwhattheyreallyare.Asimplecaseafterregressuse"F:Phd2011LezioniPhD2011marginssatisfaction_wi
4、th_democracy_europe.dta",clearregdemo_satisfactionest_europaqualityofinstitutionsmargins,at(est_europa=(01))Asanalternativemethod:notetheiinfrontofthedummyvariable!istandsfordummyvariable!!!regdemo_satisfactioni.est_europaqualityofinstitutionsmargins,at(est_europa=(01))marginsest_europaThenumbersre
5、portedinthe“Margin”columnareaveragevaluesofy.Basedonalinearregressionofdemo_satisfactiononest_europaqualityofinstitutions,.6153962wouldbetheaveragevalueofdemo_satisfactionifeverycountryinthedataweretreatedasiftheywereaneasteuropeancountry,and.4368113wouldbetheaveragevalueifeveryoneweretreatedasifth
6、eywereanoteast-europeancountry.Notthatinthiscase,themarginsofest_europaisestimatedbyconsideringthevalueofqualityofinstitutionsthatisfoundinthedata!!!Forexample,forBelgiumis.65329248,forDenmarkis1.439214,andsoon.Thisisthedefaultoption!Wecouldwanttoestimatethemarginsofest_europabyfixingthevalueofqual
7、ityofinstitutionsattheaveragemeanofthesampleforalltheobservations:1marginsest_europa,at((mean)_all)Whenyouspecifyatmeansoranyotheratoption,marginsreportsthevaluesusedforthecovariatesinthelegendabovethetable