Dear Prof. Winter,
After reading your answer to somebody else's message, I tried to use -mktab-
after -ml-
I tried all syntaxes that sound reasonable to me, but I don't think I got
the right one.
Here is an example of a program of my best (failed) guess.
use mydata, clear
constraint define 1 var1=1
keep if sex=="male": sex
program define mylikelihood
version 8.0
args lnf theta1 theta2
* omitted
end
char _dta[omit] prevalent
xi: ml model lf mylikelihood (exbeta: income= var1 i.var2 var3 var4 var5
i.var6 i.var7 var8 and so on) (sigma:), constraints(1)
ml check
ml search
xi: mktab (exbeta: income= var1 i.var2 var3 var4 var5 i.var6 i.var7 var8
and so on) (sigma:), cmd(ml maximize, difficult)
log(`"C:\data\log_myml_mktab_eq1"', replace) notags connect
ml graph
ml clear
program drop mylikelihood
I thank you very much for any clarification.
Sincerely,
Renzo Comolli
-----Original Message-----