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 <>
Subject   st: change values of e(b)
Date   Wed, 4 Dec 2002 16:12:31 +0800


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

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)

Thanks for any suggestion.


*   For searches and help try:

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