|
看stata对应的help的例子或者manual里面详细的解释
软件上命令不明白的先看软件的帮助不是看其他的资料。
下面就是人家的例子,按照例子的步骤执行就可以。 解释就看manual。 另外,计量经济学的基础知识也的懂。
Examples
---------------------------------------------------------------------
Setup
. sysuse auto
. regress price weight foreign##c.mpg
Residual-versus-fitted plot
. rvfplot, yline(10)
Added-variable plot
. avplot mpg
Added-variable plots for every regressor
. avplots
---------------------------------------------------------------------
Setup
. webuse auto1
. regress price mpg weight
Component-plus-residual plot
. cprplot mpg, mspline msopts(bands(13))
Augmented component-plus-residual plot
. acprplot mpg, mspline msopts(bands(13))
Residual-versus-predictor plot
. rvpplot mpg, yline(0)
----------------------------------------------------------------------------
Setup
. sysuse auto
. regress price weight foreign##c.mpg
Leverage-versus-residual-squared plot
. lvr2plot
Standardized residuals
. predict esta if e(sample), rstandard
Studentized residuals
. predict estu if e(sample), rstudent
-------------------------------------------------------------------------------------------------------
|