Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: SUR regression with constraints

From   Maarten buis <>
Subject   Re: st: SUR regression with constraints
Date   Tue, 13 Jul 2010 07:52:58 +0000 (GMT)

--- On Tue, 13/7/10, Sami Haile wrote:
> I wanted to estimate a Farm
> production cost model using the SUR regression.
> In this case I wanted to put a constraint that all the
> coefficients for Xi  in each equation summed up to 1.

See the example below:

*-------------- begin example ----------------------
sysuse auto, clear
constraint 1 _b[displacement:foreign] = ///
             1 - _b[mpg:foreign] - _b[price:foreign]
sureg (price foreign weight length)     ///
      (mpg foreign weight)              ///
      (displ foreign weight),           ///
*------------- end example --------------------------
(For more on examples I sent to the Statalist see: )

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index