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

st: logistic regression: changing a coefficient

From   "Schonlau, Matthias" <>
To   <>
Subject   st: logistic regression: changing a coefficient
Date   Mon, 14 Feb 2005 16:59:58 -0800

Dear stata listers: 

Is it possible to change a coefficient after running logistic regression and run a predict statement? 


logistic y x1 x2 x3 
matrix A=e(b)
/* change the value of the first  coefficient, e.g. to lower limit of CI */
matrix A[1,1]=0.5  
replace e(b)=A   /* this line does not work */ 
predict pred

Thanks ,


Matthias Schonlau
Statistician, RAND


This email message is for the sole use of the intended recipient(s) and
may contain privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.

*   For searches and help try:

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