regres_p.dlg
来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· DLG 代码 · 共 229 行
DLG
229 行
/*
predict (after regress)
*! VERSION 1.1.1 28mar2005
*/
VERSION 9.0
INCLUDE _std_large
INCLUDE _ht320
INCLUDE header
HELP hlp1, view("help regress postestimation")
RESET res1
DEFINE awid 45
DEFINE asep +50
DEFINE bwid 40
DEFINE bsep +45
DEFINE uwid 110
DEFINE usep +115
DEFINE vwid 55
DEFINE vsep +60
DEFINE zwid 140
DEFINE zsep +145
DIALOG main, label("predict - Prediction after estimation") tabtitle("Main")
BEGIN
INCLUDE _p_gentype
GROUPBOX gb_opts _lft _ls _iwd _ht22, /*
*/ label("Produce:")
RADIO rb_xb _indent _ss _cwd2 ., first /*
*/ option(xb) /*
*/ clickon("script all_off") /*
*/ label("Fitted values (xb)")
DEFINE holdy @y
DEFINE holdx @x
RADIO rb_resid @ _ss @ ., /*
*/ option(residuals) /*
*/ clickon("script all_off") /*
*/ label("Residuals (equation-level scores)")
RADIO rb_rstand @ _ss @ ., /*
*/ option(rstandard) /*
*/ clickon("script all_off") /*
*/ label("Standardized residuals")
RADIO rb_rstud @ _ss @ ., /*
*/ option(rstudent) /*
*/ clickon("script all_off") /*
*/ label("Studentized residuals")
RADIO rb_cooksd @ _ss @ ., /*
*/ option(cooksd) /*
*/ clickon("script all_off") /*
*/ label("Cook's distance")
RADIO rb_leverage @ _ss @ ., /*
*/ option(leverage) /*
*/ clickon("script all_off") /*
*/ label("Leverage")
RADIO rb_stdp _lft2 holdy @ ., /*
*/ option(stdp) /*
*/ clickon("script all_off") /*
*/ label("Standard error of the prediction")
RADIO rb_stdf @ _ss @ ., /*
*/ option(stdf) /*
*/ clickon("script all_off") /*
*/ label("Standard error of the forecast")
RADIO rb_stdr @ _ss @ ., /*
*/ option(stdr) /*
*/ clickon("script all_off") /*
*/ label("Standard error of the residual")
RADIO rb_covratio @ _ss @ ., /*
*/ option(covratio) /*
*/ clickon("script all_off") /*
*/ label("COVRATIO")
RADIO rb_dfits @ _ss @ ., /*
*/ option(dfits) /*
*/ clickon("script all_off") /*
*/ label("DFITS")
RADIO rb_welsch @ _ss @ ., /*
*/ option(welsch) /*
*/ clickon("script all_off") /*
*/ label("Welsch distance")
RADIO rb_pr holdx _ms awid ., /*
*/ option(NONE) /* handled another way */ /*
*/ clickon("script pr_on") /*
*/ label("Pr(y|")
EDIT en_pr_a asep @ _en7wd ., /*
*/ numonly /*
*/ label("Pr() lower limit")
TEXT tx_pr _en7sep @ bwid ., /*
*/ center label("< y <")
EDIT en_pr_b bsep @ _en7wd ., /*
*/ numonly /*
*/ label("Pr() upper limit")
TEXT tx_pr2 _en7sep @ bwid ., label(")")
RADIO rb_e holdx _ms awid ., /*
*/ option(NONE) /* handled another way */ /*
*/ clickon("script e_on") /*
*/ label("E(y|")
EDIT en_e_a asep @ _en7wd ., /*
*/ numonly /*
*/ label("E() lower limit")
TEXT tx_e _en7sep @ bwid ., /*
*/ center label("< y <")
EDIT en_e_b bsep @ _en7wd ., /*
*/ numonly /*
*/ label("E() upper limit")
TEXT tx_e2 _en7sep @ bwid ., label(")")
RADIO rb_ystar holdx _ms uwid ., /*
*/ option(NONE) /* handled another way */ /*
*/ clickon("script ystar_on") /*
*/ label("E(y*), y* = max(")
EDIT en_ystar_a usep @ _en7wd ., /*
*/ numonly /*
*/ label("E(y*) lower limit")
TEXT tx_ystar _en7sep @ vwid ., /*
*/ center label(", min(y,")
EDIT en_ystar_b vsep @ _en7wd ., /*
*/ numonly /*
*/ label("E(y*) upper limit")
TEXT tx_ystar2 _en7sep @ bwid ., label("))")
RADIO rb_dfbeta holdx _ms zwid ., last /*
*/ option(NONE) /* handled another way */ /*
*/ clickon("script dfbeta_on") /*
*/ label("DFBETA for variable:")
VARNAME vn_dfbeta zsep @ _vnwd ., /*
*/ option(dfbeta) /*
*/ label("DFBETA for variable")
END
INCLUDE ifin
SCRIPT all_off
BEGIN
script pr_off
script e_off
script ystar_off
script dfbeta_off
END
SCRIPT pr_on
BEGIN
script e_off
script ystar_off
script dfbeta_off
main.en_pr_a.enable
main.en_pr_b.enable
END
SCRIPT pr_off
BEGIN
main.en_pr_a.disable
main.en_pr_b.disable
END
SCRIPT e_on
BEGIN
script pr_off
script ystar_off
script dfbeta_off
main.en_e_a.enable
main.en_e_b.enable
END
SCRIPT e_off
BEGIN
main.en_e_a.disable
main.en_e_b.disable
END
SCRIPT ystar_on
BEGIN
script pr_off
script e_off
script dfbeta_off
main.en_ystar_a.enable
main.en_ystar_b.enable
END
SCRIPT ystar_off
BEGIN
main.en_ystar_a.disable
main.en_ystar_b.disable
END
SCRIPT dfbeta_on
BEGIN
script pr_off
script e_off
script ystar_off
main.vn_dfbeta.enable
END
SCRIPT dfbeta_off
BEGIN
main.vn_dfbeta.disable
END
INCLUDE _p_gentype_sc
INCLUDE _type_list_fd
PROGRAM command
BEGIN
put "predict "
put " " /program _p_gentype_output
INCLUDE _ifin_pr
beginoptions
option radio(main rb_xb rb_resid rb_rstand rb_rstud /*
*/ rb_cooksd rb_leverage rb_stdp rb_stdf /*
*/ rb_stdr rb_covratio rb_dfits rb_welsch /*
*/ rb_pr rb_e rb_ystar rb_dfbeta)
endoptions
INCLUDE _pr_pr
INCLUDE _e_pr
INCLUDE _ystar_pr
beginoptions
if main.rb_dfbeta {
require main.vn_dfbeta
optionarg main.vn_dfbeta
}
endoptions
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?