I was wondering if there was an easy way to pick the columns to output with esttab when building a correlation matrix.
The standard procedure for outputting correlations matrices using esttab is, for example:
Code:
sysuse auto, clear
estpost correlate price mpg rep78, matrix
eststo corr
esttab corr, unstack label not nonum
--------------------------------------------------------------------
Price Mileage (m~) Repair ~1978
--------------------------------------------------------------------
Price 1
Mileage (mpg) -0.469*** 1
Repair Record 1978 0.00655 0.402*** 1
--------------------------------------------------------------------
Observations 74
--------------------------------------------------------------------
* p<0.05, ** p<0.01, *** p<0.001Code:
esttab corr, <SELECT_COLUMNS(price)> unstack label not nonum
-------------------------------------
Price
-------------------------------------
Price 1
Mileage (mpg) -0.469***
Repair Record 1978 0.00655
-------------------------------------
Observations 74
-------------------------------------
* p<0.05, ** p<0.01, *** p<0.001Regards,
Vincent
0 Response to Pick columns to output using esttab and estpost correlation
Post a Comment