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: st: constrained tobit regression?


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: constrained tobit regression?
Date   Fri, 1 Feb 2013 14:00:59 +0100

"Does not work" can mean a lot of things. It is much more informative
if you told us what Stata told you when you tried that command.

I can see one error though: -tobit var1 var 2 var 3 var4..., ll(0),
constraint(1)- should have been: -tobit var1 var 2 var 3 var4...,
ll(0) constraint(1)-, i.e. without the second comma. In a Stata
command the comma indicates "all that follows are options", so you do
not separate options with commas.

-- Maarten

On Fri, Feb 1, 2013 at 1:52 PM, Matthias Greiff
<[email protected]> wrote:
> Dear all,
>
> I'm trying to run a tobit regression with a constraint. The ususal way to run a tobit regression is:
>
> tobit var1 var 2 var 3 var4..., ll(0)
>
> Is there a way to run a tobit regression with a constraint? In particular, I intend to incorporate a linear constraint that requires that some of the coefficients sum up to zero, e.g.,
>
> constraint 1 var2 + var3 = 0
>
> The command
>
> tobit var1 var 2 var 3 var4..., ll(0), constraint(1)
>
> does not work.
>
> Best
>
> Matthias
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/



-- 
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

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


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