Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: estwrite error r(603)


From   "Ben Jann" <ben.jann@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: estwrite error r(603)
Date   Wed, 17 Dec 2008 16:09:09 +0100

I'm puzzled. Possibly,

set trace on
estwrite ...

will shed some light on the issue (can you send me a copy of the output?).

> On a related note, when I use estread to restore estimates from a
> previous session how do I combine them with estimates from a current
> session that are in eststo dir, say to make a multiple columned table
> of estimates? eststo doesn't appear to see the estimates restored by estread.

-eststo- maintains global macro $eststo. You could type

. global eststo $eststo `r(names)'

after -estread- to update the macro.

Alternatively, just provide the names of the estimation sets to
-estout- or -esttab-. For example,

 . estout *

will tabulate all available estimation sets. To see a list of all
available estimation sets, type -estimates dir-.

ben

On Tue, Dec 16, 2008 at 10:44 PM, Carl Nelson <chnelson@illinois.edu> wrote:
> At 03:08 PM 12/16/2008, you wrote:
>>-estwrite- uses Mata to write it's files (unless you use Stata 8 or
>>specify the -estsave- option). Maybe Mata has problems writing to the
>>portable HD. Try something like
>>
>>mata
>>fn = "test.txt"
>>fh = fopen(fn, "w")
>>fput(fh, "whatever")
>>flose(fh)
>>end
>>
>>or
>>
>>mata
>>X = 1
>>mata matsave test X
>>end
>>
>>Does this work?
>>ben
> Yes it does. I'll investigate a bit further and try looking at the
> ado file to see where the error is being generated.
> On a related note, when I use estread to restore estimates from a
> previous session how do I combine them with estimates from a current
> session that are in eststo dir, say to make a multiple columned table
> of estimates? eststo doesn't appear to see the estimates restored by estread.
>
> Thanks.
>
> Carl
>
>
> *
> *   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/
>
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index