|
正如三楼而言,你的命令无问题。
但是,应当在执行完回归之后立刻运行 predict命令。
详细可参见stata的help regress文档:
predict [type] newvar [if] [in] [, statistic]
statistic Description
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Main
xb linear prediction; the default
residuals residuals
score score; equivalent to residuals
rstandard standardized residuals
rstudent Studentized (jackknifed) residuals
cooksd Cook's distance
leverage | hat leverage (diagonal elements of hat matrix)
pr(a,b) Pr(y | a < y < b)
e(a,b) E(y | a < y < b)
ystar(a,b) E(y*), y* = max(a,min(y,b))
* dfbeta(varname) DFBETA for varname
stdp standard error of the linear prediction
stdf standard error of the forecast
stdr standard error of the residual
* covratio COVRATIO
* dfits DFITS
* welsch Welsch distance
|