program define esteve version 7 args lnf theta qui replace `lnf'=-exp(`theta')*y if $ML_y1==0 qui replace `lnf'=ln(-ln(p_star)+exp(`theta'))-exp(`theta')*y if $ML_y1==1 end