Wednesday, March 15, 2006

Re: st: RE: Problems with Outreg not being able to open a file--r(603)

That was not a problem. I never opened the file. It was all part of one larger do file.

On 3/15/06, Herman van de Werfhorst <H.G.vandeWerfhorst@uva.nl> wrote: > Sorry to disturb again, but the message that the txt file of the outreg table could not be opened may point to the fact that this txt file is open. If the txt file is open you will definitely get that same message. > > Herman > > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Joe McCrary > Sent: 15 March 2006 15:04 > To: Statalist > Subject: st: Problems with Outreg not being able to open a file--r(603) > > > I am running a series of 8 regressions, the results of which I'd like > to append into a table using outreg. When I run it, I get the message > that the file could not be opened after I try to append my 5th column. > When I go to the directory where the results were being saved, the > file is gone. > > What I did do to get it to work was write the results from the last 4 > regressions into a separate file. And it works fine when I do this. > > It seems to me that outreg is limited to 4 columns. Is this true? > > Here are the results from the 4th regression: > > . reg r8mssallch r8mssall03 ses04 swp04_pct > > Source | SS df MS Number of obs = 51 > -------------+------------------------------ F( 3, 47) = 1.86 > Model | 15.3237824 3 5.10792747 Prob > F = 0.1498 > Residual | 129.282356 47 2.75068842 R-squared = 0.1060 > -------------+------------------------------ Adj R-squared = 0.0489 > Total | 144.606138 50 2.89212276 Root MSE = 1.6585 > > ------------------------------------------------------------------------------ > r8mssallch | Coef. Std. Err. t P>|t| [95% Conf. Interval] > -------------+---------------------------------------------------------------- > r8mssall03 | -.0388096 .0493324 -0.79 0.435 -.1380535 .0604344 > ses04 | .6325206 .3268157 1.94 0.059 -.0249478 1.289989 > swp04_pct | -.014927 .0195971 -0.76 0.450 -.0543513 .0244973 > _cons | 9.807167 13.28449 0.74 0.464 -16.91779 36.53212 > ------------------------------------------------------------------------------ > > > . outreg using c:\Data\NAEP\all.txt, bdec(1) rdec(3) sigsymb(*,**,+) > 10pct coefastr ctitle(R8ch) append > > But after the 5th regression: > > > . //Math Grade 4 > . reg m4mssall05 m4mssall03 ses04 swp04_pct > > Source | SS df MS Number of obs = 51 > -------------+------------------------------ F( 3, 47) = 244.64 > Model | 2108.09966 3 702.699888 Prob > F = 0.0000 > Residual | 135.001742 47 2.87237748 R-squared = 0.9398 > -------------+------------------------------ Adj R-squared = 0.9360 > Total | 2243.10141 50 44.8620281 Root MSE = 1.6948 > > ------------------------------------------------------------------------------ > m4mssall05 | Coef. Std. Err. t P>|t| [95% Conf. Interval] > -------------+---------------------------------------------------------------- > m4mssall03 | .9802351 .0507804 19.30 0.000 .8780781 1.082392 > ses04 | .5027639 .3406936 1.48 0.147 -.1826233 1.188151 > swp04_pct | .0309728 .0197241 1.57 0.123 -.008707 .0706526 > _cons | 6.9462 12.21047 0.57 0.572 -17.61809 31.51049 > ------------------------------------------------------------------------------ > > > . outreg using c:\Data\NAEP\all.txt, bdec(1) rdec(3) sigsymb(*,**,+) > 10pct coefastr ctitle(M4) append > file c:\Data\NAEP\all.txt could not be opened > r(603); > > > > > -- > Joe McCrary > ********************** > > "No problem can be solved from the same level of consciousness that created it." > --Albert Einstein > > * > * 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/ >

-- Joe McCrary **********************

"No problem can be solved from the same level of consciousness that created it." --Albert Einstein

* * 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/


Tag:


Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?