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

st: RE: -mktab- with -ml maximize-


From   "Nick Winter" <[email protected]>
To   <[email protected]>
Subject   st: RE: -mktab- with -ml maximize-
Date   Mon, 9 Jun 2003 08:13:34 -0400

I haven't looked at this closely, but -mktab- is not really designed to
work in conjunction with an interactive maximum likelihood estimation.
You might have better luck if you roll all of the -ml- code up in an ado
file, so that -mktab- can call a single command to get the estimates.



Nick


-----------------------------------------------------------
 Nicholas Winter, Ph.D.                     P 202.939.5343
 Policy Studies Associates                  F 202.939.5732
 1718 Connecticut Avenue, NW     [email protected]
 Washington, DC 20009-1148           www.policystudies.com
----------------------------------------------------------- 

> -----Original Message-----
> From: Renzo Comolli [mailto:[email protected]] 
> Sent: Monday, June 09, 2003 2:25 AM
> To: [email protected]
> Subject: st: -mktab- with -ml maximize-
> 
> 
> 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-----
> From   "Nick Winter" <[email protected]> 
> To   <[email protected]> 
> Subject   RE: st: outreg in max likelihood estimation 
> Date   Wed, 26 Mar 2003 11:39:07 -0500 
> 
> > -----Original Message-----
> > From: Roger Newson [mailto:[email protected]] 
> > Sent: Wednesday, March 26, 2003 11:26 AM
> > To: [email protected]
> > Subject: Re: st: outreg in max likelihood estimation
> > 
> > 
> > At 05:11 26/03/03 -0800, Matias Barenstein wrote:
> > >Hello Statalisters,
> > >
> > >I am doing maximimum likelihood estimations (ml) on
> > >various specifications, and would like to put the
> > >results from several of these on a single display
> > >table (one column for each specification).  With
> > >regular OLS regressions I use outreg.  However, I have
> > >not been able to use outreg for the ml estimation
> > >results.  Does it still work here, or is there an
> > >alternative command I could use?
> 
> You might also check out my -mktab- program, which has *some*
> flexibility to handle various estimation commands...
> 
> Nick Winter
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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