以下stata软件中regress命令中的内容,那位达人帮忙解释一下regress中的第2、10、11、12-14、15-20行的含义,先谢谢了。
regress, eclass:
1. version 9, missing
2. local version : di "version " string(_caller()) ", missing :"
3. if replay() {
4. if _by() {
5. error 190
6. }
7. `version' Display `0'
8. exit
9. }
10. syntax [anything] [if] [in] [aw fw iw pw] [, VCE(passthru) Robust CLuster(passthru)
> beta EForm(passthru) noHEader noTABle plus * ]
11. local diopts0 `beta' `eform' `header' `table' `plus'
12. if _by() {
13. local BY `"by `_byvars'`_byrc0':"'
14. }
15. if `:length local vce' {
16. `version' `BY' _vce_parserun regress, mark(CLuster) eq(NOConstant) : `0'
17. if "`s(exit)'" != "" {
18. ereturn local cmdline `"regress `0'"'
19. exit
20. }
21. _vce_parse, argopt(CLuster) opt(OLS Robust HC2 HC3) old : [`weight'`exp'], `
> vce' `robust' `cluster'
22. if "`r(cluster)'" != "" {
23. local cluster cluster(`r(cluster)')
24. }
25. else if "`r(vce)'" != "ols" {
26. local robust = "`r(vce)'"
27. }
28. local vce = cond("`r(vce)'" != "", "`r(vce)'", "ols")
29. }
30. else if "`cluster'" != "" {
31. local vce cluster
32. }
33. else if "`weight'" == "pweight" "`robust'" != "" {
34. local vce robust
35. }
36. else local vce ols
37. if _by() {
38. `version' `BY' BYREG `anything' `if' `in' [`weight'`exp'], `options' `diopts
> 0' `robust' `cluster'
39. }
40. else {
41. _get_diopts diopts options, `options'
42. `version' _regress `anything' `if' `in' [`weight'`exp'], `diopts0' `diopts'
> `options' `robust' `cluster'
43. }
44. ereturn local vce `vce'
45. ereturn local marginsok "XB default"
46. ereturn local title "Linear regression"
47. ereturn local cmdline `"regress `0'"'
48. _post_vce_rank, checksize