Dear Statalisters,
I want to impose constraints in a self written ML model. I've looked how to do this on the internet but can't get it to work.
This is what I tried::
constraint define 1 [eq1:]x2=1
ml model d0 cloglog_d0_hs (dead1=x2 delta) ///
(dead2=x1 x2) /logitp1 /logitp2 /logitp3 /mu1 /mu2, constraint(1)
ml init b1 b2 0 0 0 -0.5 -0.5, copy
ml maximize, trace difficult search(norescale)
no error messages but also no contraints imposed. Any suggestions?
Regards,
Marcel
I want to impose constraints in a self written ML model. I've looked how to do this on the internet but can't get it to work.
This is what I tried::
constraint define 1 [eq1:]x2=1
ml model d0 cloglog_d0_hs (dead1=x2 delta) ///
(dead2=x1 x2) /logitp1 /logitp2 /logitp3 /mu1 /mu2, constraint(1)
ml init b1 b2 0 0 0 -0.5 -0.5, copy
ml maximize, trace difficult search(norescale)
no error messages but also no contraints imposed. Any suggestions?
Regards,
Marcel
Comment