Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding post-estimation results in -esttab- table by adding more columns to e(b) and columns and rows to e(V)

    Dear Statalist,

    I want to put -nlcom- results in esttab table and these -nlcom- results are treated the same way as other regression variables in the esttab table.

    For example, this is the regression i run
    Code:
     sysuse auto
    
     reg price mpg weight
    Then i run post-estimation command -nlcom-
    Code:
    nlcom _b[mpg]/_b[weight]
    What I want is having _b[mpg]/_b[weight] estimates and standard error in esttab table and they are tabulated together with _b[mpg] and _b[weight]. The below table is what I want to get from -esttab-.
    Click image for larger version

Name:	unnamed.png
Views:	1
Size:	2.5 KB
ID:	1522987




    My strategy is to copy the elements in r(b) and r(V) stored after -nlcom- and paste them into e(b) and e(V) which I thought are what -esttab- uses in making the table. But when I tried to add columns in e(b) or in e(V), stata reports conformability error. I wonder whether there are some ways to get around this error.

    Kind regards,
    Yugen





    Last edited by Yugen Chen; 01 Nov 2019, 20:19.
Working...
X