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

📄 newey.dlg

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

*! VERSION 1.0.1  16oct2003

  keyword:  eclass

*/

VERSION 8.0

INCLUDE _std_large
INCLUDE header

HELP hlp1, view("help newey")
RESET res1

DIALOG main, label("newey - Regression with Newey-West standard errors")/*
		*/ tabtitle("Model")
BEGIN
  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+*/ 
  DEFINE _x _xsetbu
  DEFINE _y _top
  INCLUDE _bu_tsset
  INCLUDE _dviv_ts4set

  CHECKBOX ck_nocons @         _ms       @         .,			/*
		*/ label("Suppress constant term")			/*
		*/ option("noconstant")					/*
		*/  
  GROUPBOX gb_lag    _lft      _ls       _iwd      _ht5,		/*
  		*/ label("")
  RADIO    rb_lag0   _ilft     _ss       _inwd     .,			/*
		*/ label("No autocorrelation structure")		/*
		*/ clickon("script lag0")				/*
		*/ first						/*
		*/ option("lag(0)")					/*
		*/
  RADIO    rb_lag    @         _ms       _rbwd     .,			/*
		*/ clickon("script lag")				/*
		*/ last							/*
		*/
  SPINNER  sp_lag    _rbsep    @         _spwd     .,			/*
		*/ label("Maximum lag")					/*
		*/ min(1)						/*
		*/ max(c(N))						/*
		*/ default("1")						/*
		*/ option("lag")					/*
		*/
  DEFINE x @x
  TEXT     tx_lag    _spsep    @         _rbsprb   .,			/*
*/ label("Maximum lag to consider in the autocorrelation structure")	/*
		*/
		
END

SCRIPT lag0
BEGIN
	main.sp_lag.disable
END

SCRIPT lag
BEGIN
	main.sp_lag.enable
END

INCLUDE ifin
INCLUDE weights_a

DIALOG rpt, tabtitle("Reporting")
BEGIN
  DEFINE _x _lft
  DEFINE _cx _spr2b
  DEFINE _y 20
  INCLUDE _sp_level
END	

PROGRAM rpt_output
BEGIN
	optionarg /hidedefault rpt.sp_level
END

PROGRAM command
BEGIN
	allowxi
	put "newey "
	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 main.rb_lag0
		if main.rb_lag {
			optionarg main.sp_lag
		}		
		optionarg /hidedefault rpt.sp_level
	endoptions
END

⌨️ 快捷键说明

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