⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rocgold_98.dlg

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 DLG
字号:
/*
  rocgold_98

*!  VERSION 1.1.0  22mar2005

*/

VERSION 9.0

INCLUDE graph_header
INCLUDE header
HELP hlp1, view("help rocgold")
RESET res1

DIALOG main, label("rocgold - Test equality of ROC area against a gold standard ROC curve") /*
		*/ tabtitle("Main")
BEGIN
  TEXT     tx_varr         _lft      _top      _cwd1    .,		/*
		*/label("Reference variable:")
  TEXT     tx_varg         _lft4_2   @         _cwd3    .,		/*
  		*/label("Gold variable:")
  VARNAME  vn_varr         _lft      _ss       _vnwd    .,		/*
  		*/label("Reference variable")				/*
  		*/
  VARNAME  vn_varg         _lft4_2   @         _vnwd    .,		/*
  		*/label("Gold variable")
  TEXT     tx_varc         _lft      _ls       _iwd     .,		/*
  		*/label("Classification variables:")			/*
  		*/
  VARLIST  vl_varc         _lft      _ss       _iwd     .,		/*
		*/ label("Classification variables")			/*
  		*/
  GROUPBOX gb_opt          _lft      _xls      _iwd      _ht19,         /*
  		*/label("Options")
  CHECKBOX ck_sidak        _indent   _ss       _cwd2     .,		/*
  	*/label("Adjust the significance probability using Sidak's method")/*
  		*/option("sidak")
DEFINE _x @x
DEFINE _y @y
  CHECKBOX ck_binorm       _x        _ms       _cwd2     .,		/*
  	*/label("Estimate areas using binormal distribution assumption")/*
  		*/ option("binormal")
  CHECKBOX ck_test         _lft2     _y        _cwd2     .,		/*
  		*/label("Use contrast matrix for comparing ROC areas:") /*
  		*/clickon(gaction main.cb_test.enable)			/*
		*/clickoff(gaction main.cb_test.disable)
  COMBOBOX cb_test         _indent2  _ss       _vnwd     .,		/*
  		*/dropdown						/*
  		*/contents(matrix)					/*
  		*/option("test")					/*
		*/label("Use contrast matrix for comparing ROC areas")
  DEFINE _y _ls
  DEFINE _cx _sprb
  INCLUDE _sp_level

  CHECKBOX ck_graph        _ilft     +35       _ibwd     _ht7h,		/*
  		*/ groupbox						/*
  		*/ clickon(program graph_on)				/*
		*/ clickoff("program graph_off")			/*
  		*/ label("Graph the ROC curve")				/*
		*/ option("graph")
  CHECKBOX ck_noref        _indent   _ms       _inwd     .,		/*
  		*/label("Suppress plotting the 45-degree reference line")/*
		*/clickon("program check_noref")			/*
		*/clickoff("program check_noref")			/*
  		*/option("norefline")
  CHECKBOX ck_sep          @         _ms       @         .,		/*
		*/label("Place each ROC curve on its own graph ")	/*
  		*/option("separate")
  CHECKBOX ck_summ         @         _ms       @         .,		/*
  		*/label("Report the area under the ROC curve")		/*
  		*/option("summary")

END

PROGRAM check_noref
BEGIN
	if main.ck_graph {
		if ! main.ck_noref {
			call script line_opts_enable
		}
		if !H(main.ck_noref) & main.ck_noref {
			call script line_opts_disable
		}
	}
END

PROGRAM graph_on
BEGIN
	call gaction main.ck_noref.enable
	call gaction main.ck_summ.enable
    	call gaction main.ck_sep.enable

	call script p1_opts_enable
	call script p2_opts_enable
	call script p3_opts_enable
	call program check_noref
	call script gr_twoway_enable
END

PROGRAM graph_off
BEGIN
	call gaction main.ck_noref.disable
	call gaction main.ck_sep.disable
	call gaction main.ck_summ.disable

	call script p1_opts_disable
	call script p2_opts_disable
	call script p3_opts_disable
	call script line_opts_disable
	call script gr_twoway_disable
END

INCLUDE ifin
INCLUDE weights_f
INCLUDE p1_opts
INCLUDE p2_opts
INCLUDE p3_opts
INCLUDE line_opts
INCLUDE gr_twoway_98

SCRIPT PREINIT
BEGIN
	script p1_opts_createAsNoRange
	script p1_opts_setDefaultConnected
	script p2_opts_createAsNoRange
	script p2_opts_setDefaultConnected
	script p3_opts_createAsNoRange
	script p3_opts_setDefaultConnected
END

SCRIPT POSTINIT
BEGIN
	p1_opts.settabtitle "Plot 1"
	p2_opts.settabtitle "Plot 2"
	p3_opts.settabtitle "Plot 3"
END

PROGRAM command
BEGIN
	put "rocgold "
	varlist main.vn_varr
	varlist main.vn_varg
	varlist main.vl_varc
	INCLUDE _weights_pr
	INCLUDE _ifin_pr
	beginoptions
		option main.ck_sidak
		option main.ck_binorm
		if main.ck_test {
			require main.cb_test
			optionarg main.cb_test
		}
		INCLUDE _level_main_pr
		option main.ck_graph
		if main.ck_graph {
			option main.ck_noref
			option main.ck_sep
			option main.ck_summ

			call p1_opts_specialOutput.setstring "plot1opts"
			put " " /program p1_opts_special_output
			call p2_opts_specialOutput.setstring "plot2opts"
			put " " /program p2_opts_special_output
			call p3_opts_specialOutput.setstring "plot3opts"
			put " " /program p3_opts_special_output
		}

		if ! main.ck_noref {
			put " " /program line_opts_rlopts_output
		}
		put " " /program gr_twoway_output

	endoptions
END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -