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, statalist.org is already up and running.


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

Re: Re: st: SUR regression with constraints


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index