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

📄 istdize.dlg

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

*!  VERSION 1.1.1  31mar2005

	which istdize - *! version 2.1.11  20dec2004

*/

VERSION 9.0

INCLUDE _std_large
INCLUDE _ht290
INCLUDE header
HELP hlp1, view("help istdize")
RESET res1

DIALOG main, label("istdize - Indirect standardization") tabtitle("Main")
BEGIN
  TEXT     tx_case   _lft      _top      _cwd3_0   .,		/*
		*/ label("# of cases variable:")

  VARNAME  vn_case   @         _ss       _vnwd     .,		/*
		*/ label("# of cases variable")

  TEXT     tx_pop    _lft3_02  _top      _cwd3_0   .,		/*
		*/ label("Population variable:")

  VARNAME  vn_pop    @         _ss       _vnwd     .,		/*
		*/ label("Population variable")

  TEXT     tx_strata _lft3_03  _top      _cwd3_0   .,		/*
		*/ label("Strata variables:")

  VARLIST  vl_strata @         _ss       @         .,		/*
		*/ label("Strata variables")

  TEXT     tx_using  _lft      _ls       _iwd      .,		/*
		*/ label("Use standard population from Stata dataset:")

  FILE     fi_using  @         _ss       @         .,		/*
		*/ error("Use standard population from Stata dataset")	/*
		*/ filter("Stata Dataset (*.dta)|*.dta|All (*.*)|*.*")	/*
		*/ defext(dta)						/*
		*/ label("Browse...")

  RADIO    rb_popvar @         _ls       @         .,		/*
		*/ first					/*
		*/ clickon("script pop_on")			/*
		*/ label("Use population variables")

  TEXT     tx_casep  _indent2  _ss       _ibwd     .,		/*
		*/ label("Case variable:")

  DEFINE holdy @y

  VARNAME  vn_casep  @         _ss       _vnwd     .,		/*
		*/ label("Case variable")

  TEXT     tx_popp   _lft2     holdy     _cwd2     .,		/*
		*/ label("Population variable:")

  VARNAME  vn_popp   @         _ss       _vnwd     .,		/*
		*/ option(by)					/*
		*/ label("Population variable")

  RADIO    rb_rate   _lft      _ls       _iwd      .,		/*
		*/ last 					/*
		*/ clickon("script rates_on")			/*
		*/ label("Use stratum-specific rates")

  TEXT     tx_rate   _indent2  _ss       _ibwd     .,		/*
		*/ label("Stratum-specific rates variable:")

  DEFINE holdy @y

  VARNAME  vn_rate   @         _ss       _vnwd     .,		/*
		*/ label("Stratum-specific rates variable")

  TEXT     tx_crude  _lft2     holdy     _cwd2     .,		/*
		*/ label("Crude rate value or variable:")

  VARNAME  ed_crude  @         _ss       _vnwd     .,		/*
		*/ label("Crude rate value or variable")

  DEFINE _x _lft
  DEFINE _cx _spr
  DEFINE _y _xls
  INCLUDE _sp_level
END

SCRIPT pop_on
BEGIN
	main.vn_casep.enable
	main.vn_popp.enable
	main.vn_rate.disable
	main.ed_crude.disable
END

SCRIPT rates_on
BEGIN
	main.vn_casep.disable
	main.vn_popp.disable
	main.vn_rate.enable
	main.ed_crude.enable
END

INCLUDE ifin

DIALOG opt, tabtitle("Options")
BEGIN
  TEXT     tx_byvars _lft      _top      _iwd      .,		/*
		*/ label("Group variables:")

  VARLIST  vl_byvars @         _ss       @         .,		/*
		*/ option(by)					/*
		*/ label("Group variables")

  TEXT     tx_format @         _ls       @         .,		/*
		*/ label("Final summary table display format:")

  EDIT     ed_format _indent2  _ss       _en7wd    .,		/*
		*/ option("format")				/*
		*/ default("%10.0g")				/*
		*/ label("Final summary table display format")
  BUTTON   bn_format _en7sep   @         _cken7r2  .,		/*
		*/ label("Help format...")			/*
  		*/ onpush(view help format##|_new)

  CHECKBOX ck_print  _lft      _ls       _iwd      .,		/*
		*/ option(print)				/*
		*/ label("Include table summary of standard population in output")
END

PROGRAM command
BEGIN
	put "istdize "
	varlist main.vn_case
	varlist main.vn_pop
	varlist main.vl_strata
	require main.fi_using
	put "using " `"""' main.fi_using `"""'
	INCLUDE _ifin_pr
	beginoptions
		if main.rb_popvar {
			require main.vn_casep
			require main.vn_popp
			put "popvars(" main.vn_casep " " main.vn_popp ") "
		}
		if main.rb_rate {
			require main.vn_rate
			require main.ed_crude
			put "rate(" main.vn_rate " " main.ed_crude ") "
		}
		if opt.vl_byvars {
			optionarg opt.vl_byvars
		}
		option opt.ck_print
		optionarg /hidedefault opt.ed_format
		INCLUDE _level_main_pr
	endoptions
END

⌨️ 快捷键说明

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