Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -mktab- with -ml maximize-


From   "Renzo Comolli" <[email protected]>
To   <[email protected]>
Subject   st: -mktab- with -ml maximize-
Date   Mon, 9 Jun 2003 02:24:49 -0400

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-----



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