rvpplot_7.ado
来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· ADO 代码 · 共 38 行
ADO
38 行
*! version 3.0.8 05sep2001
program define rvpplot_7 /* residual vs. predictor */
version 6
_isfit cons anovaok
syntax varname [, L1title(string) *]
if "`e(cmd)'" == "anova" {
anova_terms
local aterms `r(rhs)'
local found 0
foreach trm of local aterms {
if "`trm'" == "`varlist'" {
local found 1
continue, break
}
}
if !`found' {
di in red "`varlist' is not in the model"
exit 398
}
}
else { /* regress */
capture local beta=_b[`varlist']
if _rc {
di in red "`varlist' is not in the model"
exit 398
}
}
local lhs "`e(depvar)'"
tempvar resid
quietly _predict `resid' if e(sample), resid
if "`l1title'"=="" {
local l1title "e( `lhs' | X,`varlist' )"
}
gr7 `resid' `varlist', l1("`l1title'") `options'
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?