Here is a reproducible example. Code:
PHP Code:
sysuse auto, clear
estpost corr price mpg headroom weight length, matrix
esttab using "${TABLES}/Tab_CorrMat1.tex", unstack noobs nonum cells(rho(fmt(2))) collabels("") label replace fragment mtitle("About this correlation matrix") 
 PHP Code:
                    &\multicolumn{5}{c}{About this correlation matrix}               \\
                    &       Price&Mileage (mpg)&Headroom (in.)&Weight (lbs.)&Length (in.)\\
                    &            &            &            &            &            \\
\hline
Price               &        1.00&            &            &            &            \\
Mileage (mpg)       &       -0.47&        1.00&            &            &            \\
Headroom (in.)      &        0.11&       -0.41&        1.00&            &            \\
Weight (lbs.)       &        0.54&       -0.81&        0.48&        1.00&            \\
Length (in.)        &        0.43&       -0.80&        0.52&        0.95&        1.00\\ 
 While I can delete the top row by adding "nomtitle" to the options in esttab, what I'd LIKE to delete is the second two lines, "& Price&Mileage (mpg)&Headroom (in.)&Weight (lbs.)&Length (in.)\\" and the empty line after it.
0 Response to Drop top row with variable names/labels when outputting correlation matrix with esstab
Post a Comment