Hi,
Can I ask how to tabstat and ttest result together in esttab?
My code is:
What I expect is one column is mean of interested variables and the other column is ttest coefficient between two groups. Each row represents one variable.
However, I can only see ttest result which is below OR mean result (which depends on how I write "cells" OR "main" ).
Can I ask how to tabstat and ttest result together in esttab?
My code is:
qui eststo : estpost tabstat var_1 var_2 var_3, stats(mean) columns(statistics)
qui eststo : estpost ttest var_1 var_2 var_3, by(if_bubble)
esttab, main(mean) aux(sd) unstack starlevels(* 0.10 ** 0.05 *** 0.01)
eststo clear
What I expect is one column is mean of interested variables and the other column is ttest coefficient between two groups. Each row represents one variable.
However, I can only see ttest result which is below OR mean result (which depends on how I write "cells" OR "main" ).
(2) | |
b | |
var_1 | .9334119 |
var_2 | 1.585757 |
var_3 | 2.200593 |
N | 2468 |