Hi,
I am running two regressions and report coefficients by using esttab. I am trying to add two rows before a coefficient and want to have different labels in each column and row. In the first row, I need empty labels under both columns and in the second row, I need mean and standard deviation of a variable in column 1 and column 2 respectively. However, I can not report different labels and can only add one row. My code and the output are as follows:
clear all
sysuse auto.dta
eststo clear
regress price mpg trunk length, nocons
estimates store model1
regress price mpg weight gear_ratio displacement, nocons
estimates store model2
sum mpg
local var1 = r(mean)
local var2 = r(sd)
esttab model1 model2, se ar2 compress varwidth(30) replace nonumber b(1) star(* 0.10 ** 0.05 *** 0.01) refcat(mpg "Sum Stats (mpg)" "Mean SD", label(" " " " `var1' `var2'))
Array
Thank you very much for your help in advance.
Ulas
Related Posts with multiple line refcat with labels
Sign change from margins dydx to margins dyex ?Hello everyone, I am running a logit model in which I try to forecast insolvency. The coefficients …
Treatment effect significant for a subpopulation?We analyse the effect of a policy change in soccer on the incidence of injuries. Due to our theoreti…
tsfillHello everyone, in my dataset i was having the gaps between dates so i decided to use tsfill comman…
Problem while using xtfmb (Fama-MacBeth (1973)) on dummy variablesDear Stata community, I am new to this forum and I have a question that I hope you might be able to…
how to set a dummy to arrange datahello I have a question needs to help. Z code mode I want to category Z variable below as gen zcode …
Subscribe to:
Post Comments (Atom)
0 Response to multiple line refcat with labels
Post a Comment