Hello,
I am reporting the summary statistics of variables to latex. I wish to report the standard deviation in parentheses and under the mean values. How can I modify this code for the purpose?
My current code below reports the mean and standard deviations side by side in adjacent columns.
I am reporting the summary statistics of variables to latex. I wish to report the standard deviation in parentheses and under the mean values. How can I modify this code for the purpose?
My current code below reports the mean and standard deviations side by side in adjacent columns.
Code:
local crops corn soybeans
foreach j in corn soybeans {
forvalues i = 1/7 {
estpost summarize coverageLevel policiesSoldCount policiesEarningPremiumCount policiesIndemnifiedCount unitsEarningPremium unitsIndemnifiedCount netReportedQuantity endorsedCompanionAcres liabilityAmount_1989 totalPremiumAmount_1989 subsidyAmount_1989 statePrivateSubsidy_1989 additionalSubsidy_1989 EFApremiumDiscount_1989 indemnityAmount_1989 premium_per_acre_1989 premium_per_liability_1989 subsidy_per_acre_1989 subsidy_per_liability_1989 indemnity_per_acre_1989 indemnity_per_liability_1989 if period== `i' & commodityName == "`j'"
est store p`i'_`j'
}
}
esttab p1_soybeans p2_soybeans p3_soybeans p4_soybeans p5_soybeans p6_soybeans p7_soybeans //
using "$path_results\soybeans_subsidies_summary_stats.tex", //
cells("mean(fmt(2)) sd(fmt(2))") replace

Comment