📄 probit_estat.ado
字号:
*! version 1.0.1 15feb2005
program probit_estat, rclass
version 9
if "`e(cmd)'" != "probit" & "`e(cmd)'" != "dprobit" {
error 301
}
gettoken key rest : 0, parse(", ")
local lkey = length(`"`key'"')
if `"`key'"' == substr("classification",1,max(4,`lkey')) {
CheckForBad `rest'
lstat `rest'
}
else if `"`key'"' == substr("gof",1,max(3,`lkey')) {
CheckForBad `rest'
lfit `rest'
}
else if `"`key'"' == substr("auc",1,max(3,`lkey')) {
CheckForBad `rest'
lroc, nograph, `rest'
}
else {
estat_default `0'
}
return add
end
program CheckForBad
capture syntax varlist [fw] [if] [in] [, * ]
if _rc == 0 {
// it found a varname
di as error "varlist not allowed"
exit 101
}
capture syntax [fw] [if] [in] , beta(str) [ * ]
if _rc == 0 {
// it found a beta() option
di as error "option beta() not allowed"
exit 198
}
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -