Statalist


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

Re: st: constraints


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: constraints
Date   Wed, 25 Jun 2008 13:18:42 +0100 (BST)

This is illegal syntax, you specify the equation when specifying the
constraint not when estimating the mvprobit model. Reread carefully 
-help constraint- and you will see that you have to specify something
like this:

constraint 1 [eq1]north=1
constraint 2 etc.
mvprobit ..., constr(1-some number)

It is up to you to figure out what the correct names of the equations
are (probably not eq1). You can do that by estimating the unconstraint
model and type:
matrix list e(b)

-- Maarten

--- Chiara Mussida <[email protected]> wrote:

> constraint 1 north=1
> 
> . constraint 2 centre=1
> 
> . constraint 2 southislands=1
> 
> . mvprobit(UE=sex age xfamsize loweduc compulsory diploma urate
> experience north centre southislands, constraints(1)) (UN=sex age
> married
> > xfamsize loweduc compulsory diploma experience) (UE=sex age
> newdiploma urate experience) (UN=sex age famsize loweduc compulsory
> diploma e
> > xperience) (UE=sex married loweduc compulsory diploma experience)
> (UN=sex age married nodiploma experience), cons(1-3)
> option constraints() not allowed
> r(198);
>  chiara
> 
> 2008/6/25 Eva Poen <[email protected]>:
> > Come on, you can figure that one out by yourself.
> >
> > My example has two different equations as well; run it. The
> > constraints I specified are for two different equations, but the
> same
> > variables. You can formulate constraints for different variables,
> of
> > course.
> >
> > If you run into errors, show us the error messages you get.
> >
> > Eva
> >
> >
> >
> > 2008/6/25 Chiara Mussida <[email protected]>:
> >> yes, but it is related to the same eq specified w r to 2 different
> cons.
> >> In a mvprobit I have 6 different equations with 6 different
> constraints:
> >> mvprobit (private = years logptax loginc) (vote = years logptax
> >>            loginc) (pub12 = years loginc):
> >> how could I add different cons to each eq??
> >> Thanks a lot
> >>
> >> 2008/6/25 Eva Poen <[email protected]>:aints.
> >>
> >>> Is this what you are looking for?
> >>>
> >>> webuse sysdsn3
> >>> constraint 1 [Indemnity]site2=1
> >>> constraint 2 [Prepaid]site2=2
> >>> mlogit insure age male site*,  baseoutcome(3) constraints(1-2)
> >>>
> >>> This could have been easily derived from -help constraint-.
> >>> Eva
> >>>
> >>> 2008/6/25 Maarten buis <[email protected]>:
> >>>> Than you specify a different constraint for each equation.
> >>>> -- Maarten
> >>>>
> >>>> --- Chiara Mussida <[email protected]> wrote:
> >>>>
> >>>>> Sure and Thanks. But it isn't explained how to allow
> >>>>> constraints(different) to different equation. And I'm in
> trouble..
> >>>>> Thanks
> >>>>>
> >>>>> 2008/6/25 Maarten buis <[email protected]>:
> >>>>> > --- Chiara Mussida <[email protected]> wrote:
> >>>>> >> is there a way to allow the constraints() option to each
> equation
> >>>>> of
> >>>>> >> a multivariate probit?
> >>>>> >
> >>>>> > Yes, -mvprobit- allows constraints, and the way constraints
> can
> >>>>> work
> >>>>> > with multiple equations is discussed in -help constraint-.
> >>>>> >
> >>>>> > -- Maarten
> >>>>> >
> >>>>> > -----------------------------------------
> >>>>> > Maarten L. Buis
> >>>>> > Department of Social Research Methodology
> >>>>> > Vrije Universiteit Amsterdam
> >>>>> > Boelelaan 1081
> >>>>> > 1081 HV Amsterdam
> >>>>> > The Netherlands
> >>>>> >
> >>>>> > visiting address:
> >>>>> > Buitenveldertselaan 3 (Metropolitan), room Z434
> >>>>> >
> >>>>> > +31 20 5986715
> >>>>> >
> >>>>> > http://home.fsw.vu.nl/m.buis/
> >>>>> > -----------------------------------------
> >>>>> >
> >>>>> >
> >>>>> >     
> __________________________________________________________
> >>>>> > Sent from Yahoo! Mail.
> >>>>> > A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
> >>>>> > *
> >>>>> > *   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/
> >>>>> >
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Chiara Mussida
> >>>>> PhD candidate
> >>>>> Doctoral school of Economic Policy
> >>>>> Catholic University, piacenza (Italy)
> >>>>> *
> >>>>> *   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/
> >>>>>
> >>>>
> >>>>
> >>>> -----------------------------------------
> >>>> Maarten L. Buis
> >>>> Department of Social Research Methodology
> >>>> Vrije Universiteit Amsterdam
> >>>> Boelelaan 1081
> >>>> 1081 HV Amsterdam
> >>>> The Netherlands
> >>>>
> >>>> visiting address:
> >>>> Buitenveldertselaan 3 (Metropolitan), room Z434
> >>>>
> >>>> +31 20 5986715
> >>>>
> >>>> http://home.fsw.vu.nl/m.buis/
> >>>> -----------------------------------------
> >>>>
> >>>>
> >>>>      __________________________________________________________
> >>>> Sent from Yahoo! Mail.
> >>>> A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
> >>>> *
> >>>> *   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/
> >>>
> >>
> >>
> >>
> >> --
> >> Chiara Mussida
> >> PhD candidate
> >> Doctoral school of Economic Policy
> >> Catholic University, piacenza (Italy)
> >> *
> >> *   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/
> >
> 
> 
> 
> -- 
> Chiara Mussida
> PhD candidate
> Doctoral school of Economic Policy
> Catholic University, piacenza (Italy)
> *
> *   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/
> 


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index