Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: Re: st: SUR regression with constraints


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: Re: st: SUR regression with constraints
Date   Tue, 13 Jul 2010 05:27:35 -0700 (PDT)

--- On Tue, 13/7/10, Sami Haile wrote:
> However, when I do bootstrapping, it only
> work with one constraint.

I can't reproduce that error. The example below works
as expected with 2 constraints.

*---------------- begin example --------------------
sysuse auto, clear
constraint 1 _b[displacement:foreign] = ///
             1 - _b[mpg:foreign] - _b[price:foreign]
constraint 2 _b[displacement:weight] = ///
             1 - _b[mpg:weight] - _b[price:weight]

bootstrap _b, reps(50) :                ///
sureg (price foreign weight length)     ///
      (mpg foreign weight)              ///
      (displ foreign weight),           ///
      constraint(1 2)
*----------------- end example ----------------------


> My last question is , how can I make constraints with
> inequality.

That is hard. Basically you will need to write your 
own -sureg- program and hard code that constraint in
that program. See:
<http://www.stata.com/support/faqs/stat/intconst.html>

Hope this helps,
Maarten

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

http://www.maartenbuis.nl
--------------------------


      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index