Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73262

Using "lincom" after "margins"

$
0
0
Hello.

I have a question with respect to using the lincom command after the margins command. Specifically:
Code:
margins, dydx(x1 x2) at(x1=(-1 1) m=1) at(x2=(-1 1) m=1)
The output is the following:
Code:
1._at        : x1              =          -1
               m               =           1

2._at        : x1              =           1
               m               =           1

3._at        : m               =           1
               x2              =          -1

4._at        : m               =           1
               x2              =           1

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
x1           |
         _at |
          1  |   .0209352   .0082171     2.55   0.011     .0047658    .0371046
          2  |  -.0156448   .0142666    -1.10   0.274    -.0437181    .0124286
          3  |  -.0001046   .0096455    -0.01   0.991    -.0190849    .0188756
          4  |  -.0001046   .0096455    -0.01   0.991    -.0190849    .0188756
-------------+----------------------------------------------------------------
x2           |
         _at |
          1  |  -.0038224   .0203805    -0.19   0.851    -.0439267    .0362818
          2  |  -.0038224   .0203805    -0.19   0.851    -.0439267    .0362818
          3  |  -.0310065   .0207587    -1.49   0.136    -.0718548    .0098418
          4  |   .0131324   .0292628     0.45   0.654    -.0444501    .0707149
------------------------------------------------------------------------------
I want to compare now 1._at in x1 with 3._at in x2, and 2._at in x1 with 4._at in x2. I use the two commands below:
Code:
lincom [x1]_b[1._at]-[x2]_b[3._at]
lincom [x1]_b[2._at]-[x2]_b[4._at]
but get a message:
Code:
equation [x1] not found
r(303);
Would be grateful for any help.

Viewing all articles
Browse latest Browse all 73262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>