svy_ivreg.dlg

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· DLG 代码 · 共 96 行

DLG
96
字号
/*
  svy: ivreg

*! VERSION 1.1.2  15mar2005

  keyword:  eclass

*/

VERSION 9.0

INCLUDE _std_large
INCLUDE _ht320
INCLUDE header

HELP hlp1, view("help svy: ivreg")
RESET res1

DIALOG main, tabtitle("Model") ///
	label("svy: ivreg - Instrumental variables regression for survey data")
BEGIN
  INCLUDE _dviv
  CHECKBOX ck_nocons @         _ms       @         .,			/*
		*/ label("Suppress constant term")			/*
		*/ option("noconstant")					/*
		*/
  TEXT     tx_vars2  _lft      _ms       _iwd      .,			/*
		*/ label("Endogenous variables:")			/*
		*/
  VARLIST  vl_vars2  @         _ss       @         .,			/*
		*/ label("Endogenous variables")			/*
		*/ allowcat						/*
		*/

  TEXT     tx_ivars  _lft      _ls       _iwd      .,			/*
		*/ label("Instrument variables:")			/*
		*/
  VARLIST  vl_ivars  @         _ss       @         .,			/*
		*/ label("Instrument variables")			/*
		*/ allowcat						/*
		*/

  DEFINE _x _xsetbu
  DEFINE _y 290
  INCLUDE _bu_svyset

END

PROGRAM main_sub_output
BEGIN
	varlist main.vl_vars2
	put "="
	varlist main.vl_ivars
END

INCLUDE svy_subpop_model
INCLUDE svy_se
INCLUDE svy_rpt

PROGRAM svy_options
BEGIN
	beginoptions
		put " " /program svy_subpop_output
		put " " /program svy_se_output
		put " " /program svy_rpt_output
	endoptions
END

SCRIPT POSTINIT
BEGIN
	script svy_rpt_setViewAsFirst
END

PROGRAM command
BEGIN
	allowxi
	put "svy"
	put /program svy_options
	put ": ivreg "
	varlist main.vn_dv [main.vl_iv]
	put "("
	put /program main_sub_output
	put ")"
	if !main.vl_iv & main.ck_nocons {
		stopbox stop ///
`""Suppress constant term" is selected without independent variables."'
	}
	if subpop.ck_ifin {
		put " " /program ifin_output
	}
	beginoptions
		option main.ck_nocons
		put " " /program svy_rpt_cmdoutput
	endoptions
END

⌨️ 快捷键说明

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