Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Statsby - collecting betas


From   "Wallace, John" <[email protected]>
To   <[email protected]>
Subject   st: Statsby - collecting betas
Date   Fri, 10 Dec 2004 11:44:46 -0800

Hi all
I have a statsby regression that I'm performing over a list of 100 cases ("Units").  I'd like to collect the regression coefficients from the various terms to analyze, so I'm using the following command:

.statsby "anova logcpint benchdwellmin hyb benchdwellmin*nMES nMES /nMES|die / nMES|die|atom / ,continuous(benchdwellmin) partial regress anova" _b, by(unit) saving(betas.dta)

The problem is, when I run this I get an error:
regressor c1 not found
error in statistic: _b[c1]
r(111);

This appears to happen immediately following the first Unit analysis.  The problem is, when I have a look at the coefficient matrix directly, there appears to be no problem:
. matrix list e(b)
            c1          c2          c3          c4          c5          c6          c7 ...        
r1   7.8317621  -.00012466   .16011793           0  -.01768075           0  -.00007796           

_b[c1] is clearly defined, but statsby seems to have trouble snagging it.  Am I interpreting the situation correctly?  Is there a problem with the statsby statement?

Help!

John Wallace�|�Research Associate�| Test Method Development
AFFYMETRIX, INC. | 3380 Central Expressway | Santa Clara, CA 95051 | Tel:� 408-731-5574 | Fax:� 408-481-0435


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



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