Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: syntax to get elements from posted matrices
From
Mirko <[email protected]>
To
[email protected]
Subject
st: syntax to get elements from posted matrices
Date
Fri, 24 Jun 2011 11:02:10 +0200
Dear Statalister,
After posting two matrices, I have a table that looks like this:
------------------------------------------------------------------------------
| Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
num |
_at#Z |
1 0 | 5.248057 .0670085 78.32 0.000 5.116723 5.379391
1 1 | 5.099754 .1246989 40.90 0.000 4.855348 5.344159
2 0 | 5.305705 .0552234 96.08 0.000 5.19747 5.413941
2 1 | 5.167257 .1058787 48.80 0.000 4.959739 5.374776
3 0 | 5.363354 .0446693 120.07 0.000 5.275804 5.450904
3 1 | 5.234761 .0889918 58.82 0.000 5.06034 5.409182
4 0 | 5.421003 .0364322 148.80 0.000 5.349597 5.492408
4 1 | 5.302265 .0753494 70.37 0.000 5.154583 5.449947
5 0 | 5.478651 .0323342 169.44 0.000 5.415277 5.542025
5 1 | 5.369768 .0669647 80.19 0.000 5.23852 5.501017
6 0 | 5.5363 .0339106 163.26 0.000 5.469836 5.602763
6 1 | 5.437272 .0658768 82.54 0.000 5.308156 5.566388
7 0 | 5.593948 .0405044 138.11 0.000 5.514561 5.673335
7 1 | 5.504776 .0724155 76.02 0.000 5.362844 5.646708
8 0 | 5.651597 .0501748 112.64 0.000 5.553256 5.749938
8 1 | 5.572279 .0848351 65.68 0.000 5.406006 5.738553
9 0 | 5.709245 .0614871 92.85 0.000 5.588733 5.829758
9 1 | 5.639783 .1009889 55.85 0.000 5.441849 5.837718
10 0 | 5.766894 .0736888 78.26 0.000 5.622467 5.911322
10 1 | 5.707287 .1193702 47.81 0.000 5.473325 5.941248
11 0 | 5.824543 .0864041 67.41 0.000 5.655194 5.993892
11 1 | 5.774791 .1390989 41.52 0.000 5.502162 6.047419
12 0 | 5.882191 .0994361 59.16 0.000 5.6873 6.077082
12 1 | 5.842294 .1596763 36.59 0.000 5.529334 6.155254
13 0 | 5.93984 .1126749 52.72 0.000 5.719001 6.160679
13 1 | 5.909798 .1808128 32.68 0.000 5.555411 6.264184
-------------+----------------------------------------------------------------
den |
_at |
1 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
2 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
3 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
4 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
5 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
6 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
7 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
8 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
9 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
10 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
11 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
12 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
13 | .000015 3.21e-06 4.68 0.000 8.73e-06 .0000213
------------------------------------------------------------------------------
I wish to take the ratio between 5.099754 (the second coefficient in
the first [num] panel, corresponding to the marginal effects of Z =1
evaluated at 1) and 0.00015 (the value of [den] evaluated at 1), how
should I write the –nlcom- command?
I know how to get the denominator, i.e., [den]_b[1._at] , but I don’t
know the syntax for the numerator!
Hopefully somebody can help.
Thanks
Mirko
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/