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

st: change values of e(b)


From   Hung-Jen Wang <[email protected]>
To   [email protected]
Subject   st: change values of e(b)
Date   Wed, 4 Dec 2002 16:12:31 +0800

Hi,

Is there any way to change elements of the coefficient vector e(b)
obtained after an estimation? For example, suppose I want to
replace the 5th element of the coefficient vector by a value of
2.2; the following does not work:

 . mat e(b)[1,5] = 2.2
 matrix operation not found
 r(501);

I know the following works:

 . mat b0 = e(b)
 . mat b0[1,5] = 2.2

but I want to work with e(b) since I'll later use -predict- to do
some experiments, and I assume that -predict- recognizes e(b)
only.

Thanks for any suggestion.

HJW

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