📄 logistic.dlg
字号:
/*
logistic
*! VERSION 1.1.4 31mar2005
keyword: eclass
*/
VERSION 9.0
INCLUDE _std_large
INCLUDE header
HELP hlp1, view("help logistic")
RESET res1
DIALOG main, tabtitle("Model") ///
label("logistic - Logistic regression, reporting odds ratios")
BEGIN
INCLUDE _dviv
GROUPBOX gb_output _lft _xls _iwd _ht8, /*
*/ label("Options") /*
*/
TEXT tx_offset _ilft _ms _cwd2 ., /*
*/ label("Offset variable:") /*
*/
VARNAME vn_offset @ _ss _vnwd ., /*
*/ label("Offset variable") /*
*/ option("offset") /*
*/
CHECKBOX ck_asis @ _ls _ibwd ., /*
*/ label("Retain perfect predictor variables") /*
*/ option("asis") /*
*/
END
INCLUDE byifin
INCLUDE weights_fpi
INCLUDE se
SCRIPT PREINIT
BEGIN
script se_createAsInternalML
END
DIALOG rpt, tabtitle("Reporting")
BEGIN
DEFINE _x _lft
DEFINE _cx _spr2b
DEFINE _y _top
INCLUDE _sp_level
RADIO rb_or _lft _ls _cwd1 ., /*
*/ label("Report odds ratios (default)") /*
*/ first /*
*/ option("NONE") /*
*/
RADIO rb_coef @ _ss @ ., /*
*/ label("Report estimated coefficients") /*
*/ last /*
*/ option("coef") /*
*/
END
PROGRAM rpt_output
BEGIN
optionarg /hidedefault rpt.sp_level
option radio(rpt rb_or rb_coef)
END
DIALOG max, tabtitle("Max options")
BEGIN
BUTTON bu_hlp _xsetbu _top _setbuwd ., /*
*/label("Maximize Help") /*
*/onpush(script max_hlp)
SPINNER sp_iter _lft _top _spwd ., /*
*/ label("Maximum iterations") /*
*/ min(0) /*
*/ max(16000) /*
*/ default(c(maxiter)) /*
*/ option("iterate") /*
*/
TEXT tx_iter _spsep @ _spr2b ., /*
*/ label("Maximum iterations") /*
*/
GROUPBOX gb_tol _lft _ls _cwd1 _ht6, /*
*/ label("Convergence tolerances") /*
*/
EDIT ed_tol _ilft _ms _en7wd ., /*
*/ label("Coefficient vector") /*
*/ option("tolerance") default(1e-4) /*
*/
TEXT tx_tol _en7sep @ _en7r2b ., /*
*/ label("Coefficient vector") /*
*/
EDIT ed_ltol _ilft _ls _en7wd ., /*
*/ label("Log likelihood") /*
*/ option("ltolerance") default(0) /*
*/
TEXT tx_ltol _en7sep @ _en7r2b ., /*
*/ label("Log likelihood") /*
*/
END
SCRIPT max_hlp
BEGIN
view help maximize##|_new
END
PROGRAM max_output
BEGIN
optionarg /hidedefault max.sp_iter
optionarg /hidedefault max.ed_tol
optionarg /hidedefault max.ed_ltol
END
PROGRAM command
BEGIN
allowxi
INCLUDE _by_pr
put "logistic "
varlist main.vn_dv [main.vl_iv]
INCLUDE _weights_pr
INCLUDE _ifin_pr
beginoptions
optionarg main.vn_offset
option main.ck_asis
put " " /program se_output
put " " /program rpt_output
put " " /program max_output
endoptions
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -