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
About unbalanced panel(I have a data set , 12 countries and a period of 10 years which of them have different year period, …
Iv-ppmlI am trying to implement IV-PPML in stata and fairly new to this command. I am using the “ivpoisson”…
runby: requirements for group variable?** This post references a previous forum discussion (https://www.statalist.org/forums/node/1484556) …
Using a loop to compare observations of a variableHi All, I have a dataset which looks something like below: ID Amount month max_amount max_month N…
Kaplan Meier risk table problemDear Statalist, I am using Stata 14.2 on Mac. I have created a propensity score IPT weighted sample…
Subscribe to:
Post Comments (Atom)
0 Response to multiple line refcat with labels
Post a Comment