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

📄 glogit_8.ado

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 ADO
字号:
*! version 3.3.10  20dec2004
program define glogit_8, eclass byable(recall)
	version 6.0, missing
	local options `"or Level(cilevel)"'
	if replay() {
		if `"`e(cmd)'"'!=`"glogit"' { error 301 } 
		if _by() { error 190 }
		syntax [, `options']
	}
	else { 
		syntax varlist(min=2) [if] [in] [, `options']
		marksample touse
		tokenize `varlist'
		local lhs1 "`1'"
		local lhs "`1' `2'"
		tempvar S F LOGIT
		quietly {
			gen double `S'=`1' if `1'>=0
			gen double `F'=`2'-`1' if `2'>=0 & `2'>`1'
			gen double `LOGIT'=log(`S'/`F') if `touse'
			mac shift 2
			reg `LOGIT' `*' [aw=(`S'*`F')/(`S'+`F')] if `touse', /*
				*/ depname(`lhs1')
		}
		est local cmd
		est local depvar "`lhs'"
		est local wexp
		est local wtype
		est local ll
		est local ll_0
		est local predict "glogit_p"
		est local cmd "glogit"   /* double save in e() and S_E_ */
		global S_E_cmd "glogit"
	}
	if `"`or'"'!=`""' { local or `"eform(Odds Ratio)"' }
	di _n in gr /*
		*/ `"Weighted least-squares logit estimates for grouped data"'
	regress, level(`level') `or'
end

⌨️ 快捷键说明

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