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
overlapping labels on the same pointHi all, I saw many related problems to the following but, as far as I have understood, such issues …
Reshape command with quarterly dataI would like to reshape my data from wide to long format. My headers are dates every quarter so 31-1…
No observation error in areg using variables within a rangeHello there, have created three variables represing three classes (discrete) of travel times, naley…
Ommited because of collinearity even though 'collin' and 'vif' commands show no correlation.Dear all, I have a challenge that I cannot understand or deal with. When I run my regression I get a…
Very large t-statisticsDear all, I am performing cluster robust WLS and fixed effects models on a relatively small dataset…
Subscribe to:
Post Comments (Atom)
0 Response to multiple line refcat with labels
Post a Comment