_gmax.ado

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

ADO
16
字号
*! version 3.1.2  20oct2004
program define _gmax
	version 6, missing
	syntax newvarname(gen) =/exp [if] [in] [, BY(varlist)]

	tempvar touse x
	quietly {
		gen byte `touse'=1 `if' `in'
		gen double `x'=`exp' 
		sort `touse' `by' `x'
		by `touse' `by': replace `varlist'=/*
			*/ cond(`x'<., `x', `varlist'[_n-1]) if `touse'==1
		by `touse' `by': replace `varlist'=`varlist'[_N]
	}
end

⌨️ 快捷键说明

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