欢迎来到天天文库
浏览记录
ID:39888774
大小:376.36 KB
页数:91页
时间:2019-07-14
《Maximum Likelihood Estimation and Nonlinear Least Squares in Stata_Christopher F Baum_2007》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、MaximumLikelihoodEstimationandNonlinearLeastSquaresinStataChristopherFBaumFacultyMicroResourceCenterBostonCollegeJuly2007ChristopherFBaum(BostonCollegeFMRC)ML/NLinStataJuly20071/53MaximumLikelihoodEstimationinStataAkeyresourceMaximumlikelihoodestimationA
2、keyresourceisthebookMaximumLikelihoodEstimationinStata,Gould,PitbladoandSribney,StataPress:3ded.,2006.Agooddealofthispresentationisadaptedfromthatexcellenttreatmentofthesubject,whichIrecommendthatyoubuyifyouaregoingtoworkwithMLEinStata.Toperformmaximumli
3、kelihoodestimation(MLE)inStata,youmustwriteashortStataprogramdefiningthelikelihoodfunctionforyourproblem.Inmostcases,thatprogramcanbequitegeneralandmaybeappliedtoanumberofdifferentmodelspecificationswithouttheneedformodifyingtheprogram.ChristopherFBaum(Bos
4、tonCollegeFMRC)ML/NLinStataJuly20072/53MaximumLikelihoodEstimationinStataAkeyresourceMaximumlikelihoodestimationAkeyresourceisthebookMaximumLikelihoodEstimationinStata,Gould,PitbladoandSribney,StataPress:3ded.,2006.Agooddealofthispresentationisadaptedfro
5、mthatexcellenttreatmentofthesubject,whichIrecommendthatyoubuyifyouaregoingtoworkwithMLEinStata.Toperformmaximumlikelihoodestimation(MLE)inStata,youmustwriteashortStataprogramdefiningthelikelihoodfunctionforyourproblem.Inmostcases,thatprogramcanbequitegene
6、ralandmaybeappliedtoanumberofdifferentmodelspecificationswithouttheneedformodifyingtheprogram.ChristopherFBaum(BostonCollegeFMRC)ML/NLinStataJuly20072/53MaximumLikelihoodEstimationinStataExample:binomialprobitLet’sconsiderthesimplestuseofMLE:amodelthatest
7、imatesabinomialprobitequation,asimplementedinofficialStatabytheprobitcommand.WecodeourprobitMLprogramas:programmyprobit_lfversion10.0argslnfxbquietlyreplace‘lnf’=ln(normal(‘xb’))///if$ML_y1==1quietlyreplace‘lnf’=ln(normal(-‘xb’))///if$ML_y1==0endChristoph
8、erFBaum(BostonCollegeFMRC)ML/NLinStataJuly20073/53MaximumLikelihoodEstimationinStataExample:binomialprobitThisprogramissuitableforMLestimationinthelinearformorlfcontext.Thelocalmacrolnfcontainsthecontributiontolog-likeliho
此文档下载收益归作者所有