rantao 发表于 2014-4-6 10:54 
not work.....
Is there any thing wrong in the 2nd program?
not working, do you mean the program is working, but mle not converging, or something else?  the 2nd program should be:
program  mymle
        syntax varlist
        gettoken dep indep: varlist
        ml model lf tmle_lf (`dep'=`indep') /n
        ml max
end