📄 binreg.dlg
字号:
/*
binreg
*! VERSION 1.1.1 08feb2005
*/
VERSION 9.0
INCLUDE glm_header
DEFINE _dlght 380
INCLUDE header
HELP hlp1, view("help binreg")
RESET res1
DIALOG main, /*
*/ label("binreg - Generalized linear models: extensions to the binomial family") tabtitle("Model")
BEGIN
INCLUDE _dviv
CHECKBOX ck_nocons @ _ms @ ., /*
*/ label("Suppress constant term") /*
*/ option("noconstant") /*
*/
GROUPBOX gb_opts _lft _ms _iwd _ht4, /*
*/ label("Link choices") /*
*/
RADIO rb_or _ilft _ss _cwd2 ., /*
*/ label("Logit link/odds ratios") /*
*/ first /*
*/ option("or") /*
*/
RADIO rb_rr _lft2 @ @ ., /*
*/ label("Log link/risk ratios") /*
*/ option("rr") /*
*/
RADIO rb_hr _ilft _ss @ ., /*
*/ label("Log-complement link/health ratios") /*
*/ option("hr") /*
*/
RADIO rb_rd _lft2 @ @ ., /*
*/ label("Identity link/risk differences") /*
*/ last /*
*/ option("rd") /*
*/
GROUPBOX gb_n _lft _xls _iwd _ht4h, /*
*/ label("Number of trials") /*
*/
RADIO rb_sp_n _ilft _ss _rbwd ., /*
*/ clickon("script sp_n") /*
*/ first /*
*/ option(NONE) /*
*/
SPINNER sp_n _rbsep @ _spwd ., /*
*/ label("Constant") /*
*/ min(1) /*
*/ max(10000000) /*
*/ default(1) /*
*/ option("n") /*
*/
TEXT tx_sp_n _spsep @ _rbsprb ., /*
*/ label("Constant") /*
*/
RADIO rb_vn_n _ilft _ms _rbwd ., /*
*/ clickon("script vn_n") /*
*/ last /*
*/ option(NONE) /*
*/
VARNAME vn_n _rbsep @ _vnwd ., /*
*/ label("Variable") /*
*/ option("n") /*
*/
TEXT tx_vn_n _vnsep @ _rbvnrb ., /*
*/ label("Variable") /*
*/
GROUPBOX gb_opt _lft _xls _iwd _ht9h, /*
*/ label("Options") /*
*/
RADIO rb_expose _ilft _ss _cwd4_1 ., /*
*/ label("Exposure variable:") /*
*/ first /*
*/ clickon("script expose") /*
*/
RADIO rb_offset _ilft4_2 @ @ ., /*
*/ label("Offset variable:") /*
*/ last /*
*/ clickon("script offset") /*
*/
VARNAME vn_expose _ilft _ss @ ., /*
*/ label("Exposure variable") /*
*/ option("exposure") /*
*/
VARNAME vn_offset _ilft4_2 @ @ ., /*
*/ label("Offset variable") /*
*/ option("offset") /*
*/
TEXT tx_init _ilft _ls _ibwd ., /*
*/ label("Initial mean estimates variable:") /*
*/
/* -init- seems to be equivalent to the -glm- option -mu- */
VARNAME vn_init @ _ss _cwd4_1 ., /*
*/ label("Initial mean estimates variable") /*
*/ option("init") /*
*/
TEXT tx_note _lft4_2 @ _comb4_3 ., /*
*/ label("Note: This is an advanced option that may help with convergence.")
END
SCRIPT sp_n
BEGIN
main.sp_n.enable
main.vn_n.disable
END
SCRIPT vn_n
BEGIN
main.sp_n.disable
main.vn_n.enable
END
INCLUDE byifin
INCLUDE weights_fpai
INCLUDE se
SCRIPT PREINIT
BEGIN
script se_createAsGLM
END
DIALOG rpt, tabtitle("Reporting")
BEGIN
DEFINE _x _lft
DEFINE _cx _spr2
DEFINE _y _top
INCLUDE _sp_level
CHECKBOX ck_coeff _lft _ls _iwd ., /*
*/ label("Report nonexponentiated coefficients") /*
*/ option(coeff) /*
*/
END
PROGRAM rpt_output
BEGIN
optionarg /hidedefault rpt.sp_level
option rpt.ck_coeff
END
SCRIPT expose
BEGIN
main.vn_expose.enable
main.vn_offset.disable
END
SCRIPT offset
BEGIN
main.vn_expose.disable
main.vn_offset.enable
END
INCLUDE max_glm
SCRIPT POSTINIT
BEGIN
program max_create_binreg
END
PROGRAM command
BEGIN
allowxi
INCLUDE _by_pr
put "binreg "
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 _weights_pr
INCLUDE _ifin_pr
beginoptions
option main.ck_nocons
option radio(main rb_or rb_rr rb_hr rb_rd)
if main.rb_sp_n {
optionarg /hidedefault main.sp_n
}
if main.rb_vn_n {
require main.vn_n
optionarg main.vn_n
}
optionarg main.vn_expose
optionarg main.vn_offset
optionarg main.vn_init
put " " /program se_output
put " " /program rpt_output
put " " /program max_glm_output
endoptions
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -