Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: matrix of initial values in ml estimations


From   Anisa Shyti <anisa.shyti@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: matrix of initial values in ml estimations
Date   Tue, 10 Apr 2012 18:35:39 +0200

Perfect, worked great.

Thank you Marteen!
Cheers,
Anisa

On Tue, Apr 10, 2012 at 4:40 PM, Maarten Buis <maartenlbuis@gmail.com> wrote:
>
> On Tue, Apr 10, 2012 at 4:33 PM, Anisa Shyti wrote:
> > Thank you for your reply.  I am using a program that I define, with a
> > set of temporary variables etc.
> >
> > The command I use is the following:
> >
> > ml model lf wmidwr (alpha: option pl pu r = )(beta: ), technique(nr 6
> > dfp 3 bhhh 3) init(0.1 0.1, copy)
> > ml maximize,  iterate(160) difficult
> >
> > Where shall I insert the loops for the initial values?
>
> Something like this :
>
>  forvalues i = 1/9 {
>    forvalues j = 1/9 {
>        local a = `i'/10
>        local b = `j'/10
>         ml model lf wmidwr (alpha: option pl pu r = )(beta: ),
> technique(nr 6 dfp 3 bhhh 3) init(`a' `b', copy)
>         ml maximize,  iterate(160) difficult
>    }
>  }
>
> -- Maarten
>
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
>
>
> http://www.maartenbuis.nl
> --------------------------
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index