Hi, I am trying to create a table that includes averages of variables given they fullfill something.
Basically I have 2 dummy variables named “seller” and “customer”. I want to characterise my table as seller: (seller==1), customer: (customer==1) and unidentified: seller==0 & customer==0, and all.
I have several variables I want averages of, i.e “size”, “bm”, “roa”, “leverage_ratio” ++.
I basically want a table looking something like this:
Averages
Seller Customer Unidentified All
Size …… ………. ……. .......
bm ...... ............ ........ .........
roa ...... ............ ............. .........
leverage
So what I attempted was do something like this, however it didn't turn out pretty. It did have size, bm etc after each other, but instead of understanding that there are 4 categories, it just put additional ones next to each other like this:
Seller Customer Unidentified All Seller Customer Unidentified
mean size if seller==1
estimates store size1
mean size if customer==1
estimates store size2
mean size if seller==0 & customer==0
estimates store size3
mean size
estimates store size4
mean bm if seller==1
estimates store bm1
mean bm if customer==1
estimates store bm2
.
.
.
esttab size1 size2 size3 size4 bm1 bm2 bm3 bm4
I only need the averages/means, not significance etc. Could someone please show me how to create a table?
Best,
Emilie
Basically I have 2 dummy variables named “seller” and “customer”. I want to characterise my table as seller: (seller==1), customer: (customer==1) and unidentified: seller==0 & customer==0, and all.
I have several variables I want averages of, i.e “size”, “bm”, “roa”, “leverage_ratio” ++.
I basically want a table looking something like this:
Averages
Seller Customer Unidentified All
Size …… ………. ……. .......
bm ...... ............ ........ .........
roa ...... ............ ............. .........
leverage
So what I attempted was do something like this, however it didn't turn out pretty. It did have size, bm etc after each other, but instead of understanding that there are 4 categories, it just put additional ones next to each other like this:
Seller Customer Unidentified All Seller Customer Unidentified
mean size if seller==1
estimates store size1
mean size if customer==1
estimates store size2
mean size if seller==0 & customer==0
estimates store size3
mean size
estimates store size4
mean bm if seller==1
estimates store bm1
mean bm if customer==1
estimates store bm2
.
.
.
esttab size1 size2 size3 size4 bm1 bm2 bm3 bm4
I only need the averages/means, not significance etc. Could someone please show me how to create a table?
Best,
Emilie
Comment