📄 heckp_lf.ado
字号:
*! version 1.0.3 07may1999
program define heckp_lf
version 6.0
args lf /* to be filled in with the likelihood
*/ xb1 /* x*b1
*/ xb2 /* x*b2
*/ xb3 /* x*b3 */
/* Calculate the log-likelihood */
local rho (exp(2*`xb3')-1) / (exp(2*`xb3')+1)
qui replace `lf' = binorm(`xb1',`xb2',`rho') if $ML_y1 & $ML_y2
qui replace `lf' = binorm(-`xb1',`xb2',-`rho') if !$ML_y1 & $ML_y2
qui replace `lf' = 1 - normprob(`xb2') if !$ML_y2
qui replace `lf' = ln(`lf') if $ML_samp
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -