Hung-Jen Wang
> 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.
e(b) is part of what is left behind after
a certain model is estimated on a
certain data set.
Change the data fed to the model,
or change the model, and estimate by reissuing
the model command, and e(b) will (almost always)
change.
So if you want to use -predict-
after a different fit, you need
to estimate again.
Revising history is best left
to science fiction writers and, indeed,
historians.
Nick
[email protected]
*
* 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/