11/26/2022 0 Comments Eststo stata 13![]() Stats(skal skalsd r2 N, labels("Linear Combination" "S.E." R-squared "N. ![]() Label variable foreign "Car type (1=foreign)"Įstout, cells(b(star fmt(3)) t(par fmt(2))) /// Is there a more elegant way to do this?Įststo, title("Model 1"): regress price weight mpgĮststo, title("Model 2"): regress price weight mpg foreign First install estout in Stata (ssc install estout), then we can jump right into the examples. I think it is easiest to explain everything with examples, for which I use some tables from my current working paper. Both point estimates and standard errors are easily computed via lincom but the best solution I've found so far for getting these numbers into the table involves the massily hacky addition of these numbers, one estadd scalar. So hopefully this post is helpful for aspiring applied econometricians who want to automate output reporting from Stata into LaTeX. However, what I want is a bit special: Between the table section that shows the coefficient estimates and their standard errors, and the section that shows R^2 and the like, I would like to add a section that shows point estimates and standard errors (bonus points for stars) for particular linear combinations of the coefficients. Regression-based decomposition of inequality in priceĭecomp.I want to output the results of several regressions as a nicely formatted LaTeX table and am happy to see that for most cases the estout package on SSC seems to do exactly that. ![]() ineqrbd price trunk weight length foreign, noregression ![]() ![]() These scripts rely on xmltab and mat2txt for regression and summary statistics tables, respectively, but I try to make these packages easier to use by adding locals. As a reference for generating publication quality tables, I’ve included two 10-step examples in Stata. if _rc ssc install ineqrbd // and get it if not. The rest of the checklist simply involves crossing t’s and dotting i’s. capture which ineqrbd // check whether -ineqrbd- is installed. esttab matrix(A), eqlabels(,merge)Įq1:r1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |