TransWikia.com

Fitting Regression Table into LaTeX

TeX - LaTeX Asked by Krunal Desai on July 24, 2021

I’m trying to fit tables to page-width that I include in the .tex document. I’m doing this because I’m exporting tables from Stata to Latex with the estout methods, and include these tables into my document. However, some tables are too wide and I’d like to scale them down to make them fit.

begin{table}[htbp]centering
defsym#1{ifmmode^{#1}else(^{#1})fi}
caption{Without BRGF Interaction Effectslabel{tab2}}
begin{tabular}{l*{6}{D{.}{.}{-1}}}
toprule
                    &multicolumn{1}{c}{(1)}&multicolumn{1}{c}{(2)}&multicolumn{1}{c}{(3)}&multicolumn{1}{c}{(4)}&multicolumn{1}{c}{(5)}&multicolumn{1}{c}{(6)}
                    &multicolumn{1}{c}{Total Fatalities}&multicolumn{1}{c}{Total Fatalities}&multicolumn{1}{c}{Total Fatalities}&multicolumn{1}{c}{Total Fatalities}&multicolumn{1}{c}{Total Fatalities}&multicolumn{1}{c}{Total Fatalities}
midrule
Total Fatalities    &                     &                     &                     &                     &                     &                     
Funds Released      &      0.0521sym{**} &     0.00300         &      0.0131         &      0.0217         &      0.0250         &      0.0285sym{*}  
                    &    (0.0163)         &    (0.0142)         &    (0.0140)         &    (0.0132)         &    (0.0133)         &    (0.0128)         
addlinespace
Geographical area   &                     &    0.000207sym{***}&    0.000194sym{***}&   0.0000497         &  0.00000994         &  0.00000988         
                    &                     & (0.0000415)         & (0.0000417)         & (0.0000850)         & (0.0000759)         & (0.0000742)         
addlinespace
Rural Literacy Rate &                     &                     &      -2.383         &      -0.590         &      -1.053         &       0.330         
                    &                     &                     &     (1.668)         &     (2.092)         &     (2.003)         &     (2.134)         
addlinespace
Total Forest Cover  &                     &                     &                     &    0.000335sym{*}  &    0.000308sym{*}  &    0.000219         
                    &                     &                     &                     &  (0.000160)         &  (0.000136)         &  (0.000135)         
addlinespace
Actual Rainfall (mm)&                     &                     &                     &                     &    0.000441         &    0.000359         
                    &                     &                     &                     &                     &  (0.000249)         &  (0.000251)         
addlinespace
Ruggedness Mean     &                     &                     &                     &                     &                     &     0.00536         
                    &                     &                     &                     &                     &                     &   (0.00384)         
addlinespace
Constant            &       0.718sym{**} &     -0.0911         &       1.043         &       0.282         &       0.108         &      -0.777         
                    &     (0.268)         &     (0.291)         &     (0.931)         &     (1.068)         &     (1.036)         &     (1.164)         
midrule
/                   &                     &                     &                     &                     &                     &                     
lnalpha             &       1.959sym{***}&       1.765sym{***}&       1.752sym{***}&       1.719sym{***}&       1.697sym{***}&       1.684sym{***}
                    &     (0.145)         &     (0.124)         &     (0.124)         &     (0.122)         &     (0.122)         &     (0.121)         
midrule
Observations        &         770         &         770         &         770         &         770         &         770         &         770         
bottomrule
multicolumn{7}{l}{footnotesize Standard errors in parentheses}
multicolumn{7}{l}{footnotesize Notes: In all regressions, the response variable is total fatalities by Naxalite activity, and the estimation techniques are negative binomial regressions.}
multicolumn{7}{l}{footnotesize Column (1) is the only column without controls. Column (2) controls for geographical area, Column (3) controls for rural literacy rate, Column (4) controls for total forest cover, Column (5) controls for total yearly rainfall, and Column (6) controls the mean ruggedness per district.}
multicolumn{7}{l}{footnotesize Negative binomial regressions display standards errors clustered at the district level.}
multicolumn{7}{l}{footnotesize The stars represent:}
multicolumn{7}{l}{footnotesize sym{*} (p<0.05), sym{**} (p<0.01), sym{***} (p<0.001)}
end{tabular}
end{table}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP