_isfit.ado
来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· ADO 代码 · 共 35 行
ADO
35 行
*! version 1.0.2 05sep2001
program define _isfit /* cons */
version 7
if "`e(cmd)'" == "anova" {
if "`1'"!="anovaok" & "`2'"!="anovaok" {
di as err "not appropriate after anova"
exit 301
}
}
else if "`e(cmd)'"!="fit" & "`e(cmd)'"!="regress" {
error 301
}
if "`e(model)'"!="ols" {
di as err "not appropriate after IV estimation"
exit 301
}
if "`1'"=="cons" | "`2'"=="cons" {
if "`e(cmd)'" == "anova" {
anovadef
if "`r(tid1)'" != "1" {
di as err "not appropriate after anova, nocons"
exit 301
}
}
else {
capture local b = _b[_cons]
if _rc {
di as err /*
*/ "not appropriate after regress, nocons"
exit 301
}
}
}
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?