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" <matt@rand.org>
To   <statalist@hsphsun2.harvard.edu>
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? 

e.g. 

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 ,

matt 





Matthias Schonlau
Statistician, RAND 
http://www.rand.org/methodology/stat/members/matt/

--------------------

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:
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index