生活随笔
收集整理的這篇文章主要介紹了
Stata命令学习
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
目錄
- edit
- describe
- regress
- predict
- rvfplot
- graph
- constraint
- nl
- xb
- nlcom
edit
edit
describe
describe
regress
regress depvar
[indepvar
][if
][in
][weight
][options
]
- regress:回歸
- depvar:因變量名稱
- indepvar:自變量名稱
- in:范圍語句
- weight:權重語句
- options:其他選項
其他選項含義
| noconstant | 模型不包含常數項 |
| hascons | 用戶自定義常數項 |
| level(#) | 設置置信區間,默認值95% |
| vec(type) | 標準化系數 |
predict
predict
[type
]newvar
[if
][in
][options
]
- predict:預測命令
- newvar:將要進行預測的變量
- if:條件語句
- in:范圍語句
- options:其他選項
其他選項含義
| xb | 線性預測擬合值 |
| residuals | 殘差 |
| rstandard | 標準化殘差 |
| rstudent | 學生化殘差 |
| stdp | 樣本內預測標準差 |
| stdf | 樣本外預測標準差 |
| stdr | 殘差的標準差 |
| cooksd | Cook的D影響統計量 |
| covratio | COVARTIO影響統計量 |
| difits | DFITS影響統計量 |
| welsch | Welsh距離 |
| dfbeta(varname) | 變量varname的DFBETA |
rvfplot
graph
graph twoway scatter e yhat,yline
(0
)
constraint
nl
xb
nlcom
總結
以上是生活随笔為你收集整理的Stata命令学习的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。