黃河泉 发表于 2020-1-1 18:42 
不会吧!请看
您看:
. sysuse auto
(1978 Automobile Data)
. pwcorr price mpg
| price mpg
-------------+------------------
price | 1.0000
mpg | -0.4686 1.0000
. gen A=r(rho)
. clear
. sysuse auto, clear
(1978 Automobile Data)
. pwcorr price mpg weight
| price mpg weight
-------------+---------------------------
price | 1.0000
mpg | -0.4686 1.0000
weight | 0.5386 -0.8072 1.0000
. matrix A = r(C)
. gen wanted = A[1,2]
. list wanted in 1/10
+--------+
| wanted |
|--------|
1. | 1 |
2. | 1 |
3. | 1 |
4. | 1 |
5. | 1 |
|--------|
6. | 1 |
7. | 1 |
8. | 1 |
9. | 1 |
10. | 1 |
+--------+
.