📄 cc.dlg
字号:
/*
cc.dlg
*! VERSION 1.1.0 15nov2004
*/
VERSION 9.0
INCLUDE _std_large
INCLUDE _ht320
INCLUDE header
HELP hlp1, view("help cc")
RESET res1
DIALOG main, label("cc - Case-control studies") tabtitle("Main")
BEGIN
INCLUDE _epitab_vars
END
INCLUDE ifin
INCLUDE weights_f
DIALOG opt, label("cc - Case-control studies") tabtitle("Options")
BEGIN
CHECKBOX ck_byopt _lft _top _cwd1 ., ///
label("Stratify on variable:") ///
onclickon(program byopt_on) ///
onclickoff(script byopt_off)
VARNAME vn_byopt _indent2 _ss _vnwd ., ///
label("Stratify on variable")
INCLUDE _epitab_stdopts
CHECKBOX ck_bd @ _ms @ ., ///
option(bd) label("Breslow-Day homogeneity test")
CHECKBOX ck_bin _lft2 _top _cwd1 ., ///
label("Number of subjects variable:") ///
onclickon(opt.vn_bin.enable) ///
onclickoff(opt.vn_bin.disable)
VARNAME vn_bin _indent2 _ss _vnwd ., ///
option(binomial) label("Number of subjects variable")
GROUPBOX gb_box _lft2 _ls _cwd1 _ht8,
RADIO rb_exact _indent _ss _inwd ., ///
option(NONE) first label("Exact confidence intervals")
RADIO rb_cornfield @ _ss @ ., ///
option(cornfield) label("Cornfield approximation")
RADIO rb_woolf @ _ss @ ., ///
option(woolf) label("Woolf approximation")
RADIO rb_tb @ _ss @ ., ///
option(tb) last label("Test-based confidence intervals")
CHECKBOX ck_exact _lft2 +45 _cwd1 ., ///
option(exact) label("Fisher's exact p")
DEFINE _x _lft2
DEFINE _y _ls
DEFINE _cx _spr2
INCLUDE _sp_level
END
PROGRAM byopt_on
BEGIN
call opt.vn_byopt.enable
call opt.rb_mstd.enable
call opt.rb_istd.enable
call opt.rb_estd.enable
call opt.rb_vstd.enable
if opt.rb_vstd {
call opt.vn_vstd.enable
}
call opt.ck_nocrude.enable
call opt.ck_pool.enable
call opt.ck_nohom.enable
call opt.ck_bd.enable
END
SCRIPT byopt_off
BEGIN
opt.vn_byopt.disable
opt.rb_mstd.disable
opt.rb_istd.disable
opt.rb_estd.disable
opt.rb_vstd.disable
opt.ck_nocrude.disable
opt.ck_pool.disable
opt.ck_nohom.disable
opt.ck_bd.disable
opt.vn_vstd.disable
END
SCRIPT mstd_on
BEGIN
opt.vn_vstd.disable
END
SCRIPT estd_on
BEGIN
opt.vn_vstd.disable
END
SCRIPT istd_on
BEGIN
opt.vn_vstd.disable
END
SCRIPT vstd_on
BEGIN
opt.vn_vstd.enable
END
PROGRAM command
BEGIN
put "cc "
varlist main.vn_varcase
varlist main.vn_varexp
INCLUDE _weights_pr
INCLUDE _ifin_pr
beginoptions
if opt.ck_byopt {
require opt.vn_byopt
put "by("
put opt.vn_byopt
put ")"
}
if opt.ck_byopt {
option radio(opt rb_mstd rb_istd rb_estd rb_vstd)
if opt.rb_vstd {
optionarg opt.vn_vstd
}
}
option opt.ck_pool
option opt.ck_nocrude
option opt.ck_nohom
option opt.ck_bd
if opt.ck_bin {
optionarg opt.vn_bin
}
option radio (opt rb_exact rb_cornfield rb_woolf rb_tb)
option opt.ck_exact
INCLUDE _level_opt_pr
endoptions
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -