I have run 5 different but similar econometric models on 6 different subgroups of my sample, and I would like to compare the key results across these models.
In particular, I would like to have a single LaTeX table, where the rows indicate group, the columns indicate the column, and each cell contains the following: coefficient, standard error (in parentheses), and sample size [in brackets], below one another.
Here is a mockup made in Excel:
Target
Currently, I have a df containing all this information, as below:
Data
Could anyone help me find a way to do this or something similar?
I am currently using stargazer in R, but can easily do this using another library/software if need be.
Thanks a lot for any help!