2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > matlab 拉格朗日LM检验 求问 做LM检验和LR检验的stata命令

matlab 拉格朗日LM检验 求问 做LM检验和LR检验的stata命令

时间:2020-07-09 16:35:08

相关推荐

matlab 拉格朗日LM检验 求问 做LM检验和LR检验的stata命令

回复楼上,改做了LR和Wald 检验

xsmle Lngdp Score Goveff SecondaryIndustry Investment Lnpopulation stateowned ,fe model(sdm) wmat(W) type(both) nolog noeffects #sdm模型

est store sdm_a

xsmle Lngdp Score Goveff SecondaryIndustry Investment Lnpopulation stateowned ,fe model(sar) wmat(W) type(both) nolog noeffects #sar模型

est store sar_a

xsmle Lngdp Score Goveff SecondaryIndustry Investment Lnpopulation stateowned ,fe model(sem) emat(W) type(both) nolog noeffects #sem模型

est store sem_a

lrtest sdm_a sar_a #LR test spatial lag

lrtest sdm_a sem_a #LR test spatial error

Wald 检验:

xsmle Lngdp Score Goveff SecondaryIndustry Investment, wmat(W) model(sdm) robust nolog effects fe r #在LR之后

(xsmle y x1 x2 x3 x4)

test [Wx]Score = [Wx]Goveff = [Wx]SecondaryIndustry = [Wx]

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。