楼主: 复写纸5
12130 16

[面板数据求助] stata 面板logit 正确预测比 [推广有奖]

11
复写纸5 发表于 2017-9-3 21:06:08
蓝色 发表于 2017-7-23 10:28
手算是指   如果没有现成的命令,你自己根据原理写命令计算自己想要的结果。

假如回归完,没有报告系数的 ...
还有为什么logit回归能直接用命令输出正确预测比,而xtlogit却不行??敢问大侠有直接输出正确预测比的方法吗

12
蓝色 发表于 2017-9-4 15:49:43
复写纸5 发表于 2017-9-3 21:06
还有为什么logit回归能直接用命令输出正确预测比,而xtlogit却不行??敢问大侠有直接输出正确预测比的方 ...
这你的问Stata公司

13
复写纸5 发表于 2017-9-6 16:26:05
蓝色 发表于 2017-9-4 15:49
这你的问Stata公司
好忧桑啊

14
夏目贵志 发表于 2017-9-6 21:53:32
复写纸5 发表于 2017-9-6 16:26
哎好忧桑啊
自己算一下又不是很复杂。命令多了不觉得记不住吗?

15
复写纸5 发表于 2017-9-9 17:30:07
夏目贵志 发表于 2017-9-6 21:53
自己算一下又不是很复杂。命令多了不觉得记不住吗?
是呀,记不住。好多都要翻书或者百度下才行。还有这个小弟缺失不会自己计算正确预测比,感觉还是蛮复杂的

16
木石忆 发表于 2019-3-10 00:15:56
摘自https://www.stata.com/statalist/archive/2011-07/msg00935.html
RE: st: Accuracy table after mlogit
----------------------------------------------------------------------------------------------
You can do this by hand. I first show how you can recreate the -estat
classification- results for -logit- (not all the concomitant
statistics, but you can do those easily as well), and then follow the
same procedure for -mlogit-. Note that the way the predicted choices
are computed (the choice corresponding to the maximum predicted
probability) is in no way the only way to compute predicted
multinomial choices:

/**************************/
// logit
webuse lbw, clear
logit low age lwt i.race smoke ptl ht ui
estat classification
predict prob
g pred_choice = (prob >= 0.5)
tab pred_choice low  // recreate -estat classification-

// mlogit
webuse sysdsn1, clear
mlogit insure age male nonwhite i.site
predict prob*
egen pred_max = rowmax(prob*)

g pred_choice = .
forv i=1/3 {
replace pred_choice = `i' if (pred_max == prob`i')
}
local insure_lab: value label insure
label values pred_choice `insure_lab'
tab pred_choice insure
/**************************/


This is what is typically called the confusion matrix.

T

17
darkland 在职认证  发表于 2020-10-18 15:14:29
蓝色 发表于 2017-7-23 10:28
手算是指   如果没有现成的命令,你自己根据原理写命令计算自己想要的结果。

假如回归完,没有报告系数的 ...
面板logit没有组的截距,算不了预测值吧

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-29 04:24