Well, I do know -post- from a recent article in the Stata Journal... Trouble
with your code is that it does not run, at least not on my machine. I get
r(603), saying " file /tmp.dta could not be opened". The real problem was
that I did not try to create a (second) matrix first and then to extract the
coeffs. I was experimenting with something along the lines of
"e(ci_normal)[1,2]" which led to no good...
-----Urspr�ngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Austin Nichols
Gesendet: Dienstag, 19. Februar 2008 22:22
An: [email protected]
Betreff: Re: st: Extracting from returned Matrix
Martin Weiss <[email protected]>:
You say you want to use -post- but you don't show your code, so I'm
not sure where the problem is:
webuse fuel, clear
mean mpg*, vce(bootstrap)
mat ci=e(ci_normal)
postfile t row lb ub using /tmp, replace
post t (1) (ci[1,1]) (ci[1,2])
post t (2) (ci[2,1]) (ci[2,2])
postutil clear
use /tmp
li
On Feb 19, 2008 3:37 PM, Martin Weiss <[email protected]> wrote:
> Guys,
>
> I am so sick of this: trying to extract an e()-class result stored in a
> matrix. All I want is to show the development of the upper and lower bound
> of the ci for the mean in
>
> ______________________________________
> webuse fuel
> mean mpg1 mpg2
>
> mean mpg*, vce(bootstrap, reps(100))
>
> mean mpg*, vce(bootstrap, reps(1000))
> ______________________________________
>
>
> I know the result is stored in "matrix list e(ci_normal)". Now how do I
> extract the upper and lower bound (to post them to a postfile and later
plot
> the two in a tw (line ub lb) (line ub lb)-type of graph)? I can get the
> stuff into a matrix but where do I go from there? I have been reading the
> User`s guide up and down, but as far as I can tell, it dodges the
> question...
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/