reg slack11 pgdp gov open //OLS的单边检验
frontier slack11 pgdp gov open //截面数据采用 frontier,加上环境变量,面板数据用sfpanel,当然需xtset设置
predict u, u //管理无效率值提出来
predict xb, xb //系数项提出来,
***xb的解释****
xb calculates the linear prediction from the fitted model. That is, all
models can be thought of as estimating a set of parameters b1, b2,
..., bk, and the linear prediction is y = xb. For linear regression,
the values y are called the predicted values or, for out-of-sample
predictions, the forecast. For logit and probit, for example, y is
called the logit or probit index.
***算出投入的校正值
gen v=slack11-xb-u //算出技术无效率
egen vmax=max(v)
egen xbmax=max(xb)
gen x1= inv1+xbmax-xb+vmax-v
replace x1=inv1 if x1==. //缺失值用原始值替代
drop xb u v vmax xbmax
|