Continue:
Code:
------------------------------------------------------------------------------------------------------------------------------------------ begin regress ---
- version 9, missing
- local version : di "version " string(_caller()) ", missing :"
- if replay() {
if _by() {
error 190
}
`version' Display `0'
exit
}
- syntax [anything] [if] [in] [aw fw iw pw] [, VCE(passthru) Robust CLuster(passthru) HC2 HC3 beta EForm(passthru) noHEader noTABle plus * ]
- local diopts0 `beta' `eform' `header' `table' `plus'
= local diopts0
- if _by() {
local BY `"by `_byvars'`_byrc0':"'
}
- if `:length local vce' {
= if 0 {
`version' `BY' _vce_parserun regress, mark(CLuster) eq(NOConstant) : `0'
if "`s(exit)'" != "" {
ereturn local cmdline `"regress `0'"'
exit
}
_vce_parse, argopt(CLuster) opt(OLS Robust HC2 HC3) old : [`weight'`exp'], `vce' `robust' `cluster'
if "`r(cluster)'" != "" {
local cluster cluster(`r(cluster)')
}
else if "`r(vce)'" != "ols" {
local robust = "`r(vce)'"
}
local vce = cond("`r(vce)'" != "", "`r(vce)'", "ols")
if "`hc2'`hc3'" != "" {
if !inlist("`vce'", "ols", "`robust'", "`hc2'`hc3'") {
opts_exclusive "vce(`vce') `hc2' `hc3'"
}
local vce `hc2' `hc3'
local options `options' `vce'
}
}
- else if "`cluster'" != "" {
= else if "" != "" {
local vce cluster
}
- else if "`weight'" == "pweight" | "`robust'" != "" {
= else if "" == "pweight" | "" != "" {
local vce robust
}
- else if "`hc2'`hc3'" != "" {
= else if "" != "" {
local vce `hc2' `hc3'
local options `options' `vce'
}
- else local vce ols
- _get_diopts diopts options, `options'
= _get_diopts diopts options,
- if _by() {
`version' `BY' BYREG `anything' `if' `in' [`weight'`exp'], `options' `diopts0' `diopts' `robust' `cluster'
}
- else {
- `version' _regress `anything' `if' `in' [`weight'`exp'], `diopts0' `diopts' `options' `robust' `cluster'
= version 13, missing : _regress __00000H __00000G if __000044<=-11 & __000044>=-60 [],
- }
- ereturn local vce `vce'
= ereturn local vce ols
- ereturn local marginsok "XB default"
- ereturn hidden local marginsprop minus
- ereturn local title "Linear regression"
- ereturn local cmdline `"regress `0'"'
= ereturn local cmdline `"regress __00000H __00000G if __000044<=-11 & __000044>=-60"'
- _post_vce_rank, checksize
-------------------------------------------------------------------------------------------------------------------------------------------- end regress ---
- tempvar ar_`z'_`i'
= tempvar ar_1_3
- qui predict `ar_`z'_`i'' , resid
= qui predict __000049 , resid
------------------------------------------------------------------------------------------------------------------------------------------ begin predict ---
- version 8.2, missing
- if "`e(cmd)'" == "rocreg" & "`e(predict)'" == "" {
= if "regress" == "rocreg" & "regres_p" == "" {
di as err "predict not allowed after nonparametric ROC"
exit 198
}
- if "`e(mi)'"!="" & "`e(b)'"!="matrix" {
= if ""!="" & "matrix"!="matrix" {
error 321
}
- if _caller()<=5 | "`e(predict)'"=="" {
= if _caller()<=5 | "regres_p"=="" {
_predict `0'
}
- else {
- local v : display string(_caller())
- version `v', missing
= version 13, missing
- `e(predict)' `0'
= regres_p __000049 , resid
- }
-------------------------------------------------------------------------------------------------------------------------------------------- end predict ---
- _crcslbl `ar_`z'_`i'' ``i''
= _crcslbl __000049 pr_mitra
----------------------------------------------------------------------------------------------------------------------------------------- begin _crcslbl ---
- version 6
- args dst src
- local w : variable label `src'
= local w : variable label pr_mitra
- if `"`w'"' == "" {
= if `""' == "" {
- local w "`src'"
= local w "pr_mitra"
- }
- label variable `dst' `"`w'"'
= label variable __000049 `"pr_mitra"'
------------------------------------------------------------------------------------------------------------------------------------------- end _crcslbl ---
- }
- qui regress `dv_`i'' `aux_index_list_`i'' if `event'<=`upp_bound' & `event'>=`low_bound'
= qui regress __00000M __00000L if __000044<=-11 & __000044>=-60
------------------------------------------------------------------------------------------------------------------------------------------ begin regress ---
- version 9, missing
- local version : di "version " string(_caller()) ", missing :"
- if replay() {
if _by() {
error 190
}
`version' Display `0'
exit
}
- syntax [anything] [if] [in] [aw fw iw pw] [, VCE(passthru) Robust CLuster(passthru) HC2 HC3 beta EForm(passthru) noHEader noTABle plus * ]
- local diopts0 `beta' `eform' `header' `table' `plus'
= local diopts0
- if _by() {
local BY `"by `_byvars'`_byrc0':"'
}
- if `:length local vce' {
= if 0 {
`version' `BY' _vce_parserun regress, mark(CLuster) eq(NOConstant) : `0'
if "`s(exit)'" != "" {
ereturn local cmdline `"regress `0'"'
exit
}
_vce_parse, argopt(CLuster) opt(OLS Robust HC2 HC3) old : [`weight'`exp'], `vce' `robust' `cluster'
if "`r(cluster)'" != "" {
local cluster cluster(`r(cluster)')
}
else if "`r(vce)'" != "ols" {
local robust = "`r(vce)'"
}
local vce = cond("`r(vce)'" != "", "`r(vce)'", "ols")
if "`hc2'`hc3'" != "" {
if !inlist("`vce'", "ols", "`robust'", "`hc2'`hc3'") {
opts_exclusive "vce(`vce') `hc2' `hc3'"
}
local vce `hc2' `hc3'
local options `options' `vce'
}
}
- else if "`cluster'" != "" {
= else if "" != "" {
local vce cluster
}
- else if "`weight'" == "pweight" | "`robust'" != "" {
= else if "" == "pweight" | "" != "" {
local vce robust
}
- else if "`hc2'`hc3'" != "" {
= else if "" != "" {
local vce `hc2' `hc3'
local options `options' `vce'
}
- else local vce ols
- _get_diopts diopts options, `options'
= _get_diopts diopts options,
- if _by() {
`version' `BY' BYREG `anything' `if' `in' [`weight'`exp'], `options' `diopts0' `diopts' `robust' `cluster'
}
- else {
- `version' _regress `anything' `if' `in' [`weight'`exp'], `diopts0' `diopts' `options' `robust' `cluster'
= version 13, missing : _regress __00000M __00000L if __000044<=-11 & __000044>=-60 [],
- }
- ereturn local vce `vce'
= ereturn local vce ols
- ereturn local marginsok "XB default"
- ereturn hidden local marginsprop minus
- ereturn local title "Linear regression"
- ereturn local cmdline `"regress `0'"'
= ereturn local cmdline `"regress __00000M __00000L if __000044<=-11 & __000044>=-60"'
- _post_vce_rank, checksize
-------------------------------------------------------------------------------------------------------------------------------------------- end regress ---
- tempvar ar_`z'_`i'
= tempvar ar_1_4
- qui predict `ar_`z'_`i'' , resid
= qui predict __00004A , resid
------------------------------------------------------------------------------------------------------------------------------------------ begin predict ---
- version 8.2, missing
- if "`e(cmd)'" == "rocreg" & "`e(predict)'" == "" {
= if "regress" == "rocreg" & "regres_p" == "" {
di as err "predict not allowed after nonparametric ROC"
exit 198
}
- if "`e(mi)'"!="" & "`e(b)'"!="matrix" {
= if ""!="" & "matrix"!="matrix" {
error 321
}
- if _caller()<=5 | "`e(predict)'"=="" {
= if _caller()<=5 | "regres_p"=="" {
_predict `0'
}
- else {
- local v : display string(_caller())
- version `v', missing
= version 13, missing
- `e(predict)' `0'
= regres_p __00004A , resid
- }
-------------------------------------------------------------------------------------------------------------------------------------------- end predict ---
- _crcslbl `ar_`z'_`i'' ``i''
= _crcslbl __00004A pr_ptaras
----------------------------------------------------------------------------------------------------------------------------------------- begin _crcslbl ---
- version 6
- args dst src
- local w : variable label `src'
= local w : variable label pr_ptaras
- if `"`w'"' == "" {
= if `""' == "" {
- local w "`src'"
= local w "pr_ptaras"
- }
- label variable `dst' `"`w'"'
= label variable __00004A `"pr_ptaras"'
------------------------------------------------------------------------------------------------------------------------------------------- end _crcslbl ---
- }
- qui regress `dv_`i'' `aux_index_list_`i'' if `event'<=`upp_bound' & `event'>=`low_bound'
= qui regress __00000R __00000Q if __000044<=-11 & __000044>=-60
------------------------------------------------------------------------------------------------------------------------------------------ begin regress ---
- version 9, missing
- local version : di "version " string(_caller()) ", missing :"
- if replay() {
if _by() {
error 190
}
`version' Display `0'
exit
}
- syntax [anything] [if] [in] [aw fw iw pw] [, VCE(passthru) Robust CLuster(passthru) HC2 HC3 beta EForm(passthru) noHEader noTABle plus * ]
- local diopts0 `beta' `eform' `header' `table' `plus'
= local diopts0
- if _by() {
local BY `"by `_byvars'`_byrc0':"'
}
- if `:length local vce' {
= if 0 {
`version' `BY' _vce_parserun regress, mark(CLuster) eq(NOConstant) : `0'
if "`s(exit)'" != "" {
ereturn local cmdline `"regress `0'"'
exit
}
_vce_parse, argopt(CLuster) opt(OLS Robust HC2 HC3) old : [`weight'`exp'], `vce' `robust' `cluster'
if "`r(cluster)'" != "" {
local cluster cluster(`r(cluster)')
}
else if "`r(vce)'" != "ols" {
local robust = "`r(vce)'"
}
local vce = cond("`r(vce)'" != "", "`r(vce)'", "ols")
if "`hc2'`hc3'" != "" {
if !inlist("`vce'", "ols", "`robust'", "`hc2'`hc3'") {
opts_exclusive "vce(`vce') `hc2' `hc3'"
}
local vce `hc2' `hc3'
local options `options' `vce'
}
}
- else if "`cluster'" != "" {
= else if "" != "" {
local vce cluster
}
- else if "`weight'" == "pweight" | "`robust'" != "" {
= else if "" == "pweight" | "" != "" {
local vce robust
}
- else if "`hc2'`hc3'" != "" {
= else if "" != "" {
local vce `hc2' `hc3'
local options `options' `vce'
}
- else local vce ols
- _get_diopts diopts options, `options'
= _get_diopts diopts options,
- if _by() {
`version' `BY' BYREG `anything' `if' `in' [`weight'`exp'], `options' `diopts0' `diopts' `robust' `cluster'
}
- else {
- `version' _regress `anything' `if' `in' [`weight'`exp'], `diopts0' `diopts' `options' `robust' `cluster'
= version 13, missing : _regress __00000R __00000Q if __000044<=-11 & __000044>=-60 [],
- }
- ereturn local vce `vce'
= ereturn local vce ols
- ereturn local marginsok "XB default"
- ereturn hidden local marginsprop minus
- ereturn local title "Linear regression"
- ereturn local cmdline `"regress `0'"'
= ereturn local cmdline `"regress __00000R __00000Q if __000044<=-11 & __000044>=-60"'
- _post_vce_rank, checksize
-------------------------------------------------------------------------------------------------------------------------------------------- end regress ---
- tempvar ar_`z'_`i'
= tempvar ar_1_5
- qui predict `ar_`z'_`i'' , resid
= qui predict __00004B , resid

Comment