Statalist The Stata Listserver


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

st: ML_max ado question


From   "Brooks Taggert J" <[email protected]>
To   <[email protected]>
Subject   st: ML_max ado question
Date   Sat, 25 Feb 2006 16:38:37 -0600

Statalisters-
 
So I'm using the hurdle model from Stata Journal Vol 3, No2.
 
program hurdle_ll
...
...
end
 
ml model lf hurdle_ll [equation here], svy subpop (if [variable]==1)

ml max

The first time through it runs fine, the second time it gives me the following error:

ML_subv already defined.

I traced it to the ml_max.ado, and it looks like it stems from the svy subpop () specification. How come its not being overwritten?

I seem to have found an ugly work around where I just drop it before the next run of the model.  But clearly there has to be something prettier?  I imagine Hilbe's hurdle models might be a better idea, but alas I'm working in version 8.2.

Any thoughts?

Thanks much

TJ

<<winmail.dat>>




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index