Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re:


From   "Eva Poen" <eva.poen@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re:
Date   Mon, 28 Apr 2008 18:22:18 +0100

Tobias,

see -help constraint-

Example:
***
sysuse auto, clear
constraint 1 price + weight = 1
cnsreg mpg price weight turn, constraints(1)
***

Eva

2008/4/28 "Tobias Häusel" <Tobias.Haeusel@gmx.de>:
> Hello,
>
>  I want to specify the following multiple regression model with stata.
>
>  y = cons + b1*x1 + b2*x2, with b1 + b2 = 1
>
>  Does anyone know how I can specify the coefficients(, i.e b1 + b2 =1) like that?
>  They should be specified before running the regression.
>
>  Thanks and Cheers TH
>  --
>  Psssst! Schon vom neuen GMX MultiMessenger gehört?
>  Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>  *
>  *   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/
>

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