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

Re: st: RE: logistic regression: changing a coefficient


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: RE: logistic regression: changing a coefficient
Date   Tue, 15 Feb 2005 12:31:29 -0500

At 12:20 PM 2/15/2005 -0500, Richard Williams wrote:

Well, how about something like

. sysuse auto
(1978 Automobile Data)

. qui logit fore mpg weight

. predict xb, xb

. gen xb2 = xb - _b[mpg]*mpg +  -.35*mpg
Or, in the interest of algebraic simplicity,

. gen xb3 = xb + (-.35 - _b[mpg]) * mpg

The part in parentheses is the coefficient you want minus the coefficient you want to change. My two approaches and Scott's approach all produce identical values.


-------------------------------------------
Richard Williams, Associate Professor
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc


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