📄 treatreg_2step.dlg
字号:
/*
treatreg, twostep
*! VERSION 1.1.2 21mar2005
keyword: eclass
*/
VERSION 9.0
INCLUDE _std_large
INCLUDE header
HELP hlp1, view("help treatreg")
RESET res1
DIALOG main, label("treatreg - Treatment-effects model") tabtitle("Model")
BEGIN
INCLUDE _dviv
CHECKBOX ck_nocons @ _ms @ ., /*
*/ label("Suppress constant term") /*
*/ option("noconstant") /*
*/
TEXT tx_tdv _lft _ls _vnwd ., /*
*/ label("Treatment variable:") /*
*/
DEFINE y @y
VARNAME vn_tdv @ _ss @ ., /*
*/ label("Treatment variable") /*
*/
TEXT tx_tiv _vlx y _vlwd ., /*
*/ label("Treatment independent variables:") /*
*/
VARLIST vl_tiv @ _ss @ ., /*
*/ label("Treatment independent variables") /*
*/ allowcat /*
*/
CHECKBOX ck_tnocon @ _ms @ ., /*
*/ label("Suppress treatment constant term") /*
*/ option("noconstant") /*
*/
END
INCLUDE byifin
INCLUDE se
SCRIPT PREINIT
BEGIN
script se_createAs2step
END
DIALOG rpt, tabtitle("Reporting")
BEGIN
DEFINE _x _lft
DEFINE _cx _spr
DEFINE _y _top
INCLUDE _sp_level
CHECKBOX ck_first _lft _ls _cwd1 ., /*
*/ label("Report first-step probit estimates") /*
*/ option("first") /*
*/
GROUPBOX gb_genvar _lft _ls _iwd _ht4h, /*
*/ label("Generate new variable")
TEXT tx_hazard _ilft _ss _inwd ., /*
*/ label("Treatment hazard variable:") /*
*/
EDIT ed_hazard @ _ss _vnwd ., /*
*/ label("Treatment hazard") /*
*/ option("hazard") /*
*/
END
PROGRAM treat_opts
BEGIN
require main.vn_tdv
put main.vn_tdv " "
put "= "
require main.vl_tiv
put main.vl_tiv
beginoptions
option main.ck_tnocon
endoptions
END
PROGRAM command
BEGIN
allowxi
INCLUDE _by_pr
put "treatreg "
varlist main.vn_dv [main.vl_iv]
if !main.vl_iv & main.ck_nocons {
stopbox stop `""Suppress constant term" is selected without independent variables."'
}
INCLUDE _ifin_pr
beginoptions
option main.ck_nocons
put "twostep "
put "treat("
put /program treat_opts
put ")"
put " " /program se_output
optionarg /hidedefault rpt.sp_level
option rpt.ck_first
optionarg rpt.ed_hazard
endoptions
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -