Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: -ml- with method -lf- : how to obtain scores after estimation


From   "Eva Poen" <[email protected]>
To   [email protected]
Subject   Re: st: -ml- with method -lf- : how to obtain scores after estimation
Date   Fri, 11 Jul 2008 16:25:40 +0100

Thanks, Maarten,

this got me onto the right track (I hope). I looked up -ml score-,
where I found reference to -ml_score-, which appears to be
undocumented.

The following seems to do the trick:

        if `"`scores'"' != "" {
                ml_score `0'
                exit
        }

where "scores" is the name of the option in my -predict- command.

Thanks again,
Eva


2008/7/11 Maarten buis <[email protected]>:
> --- Eva Poen <[email protected]> wrote:
>> is it possible to retrieve scores (i.e. derivatives of the log
>> likelihood with respect to the equations) after estimation with -ml-,
>> method -lf- ? Or do I have to use one of the -d- methods for this?
>>
>> The background is that I want to use -suest- after my own estimation
>> command, which means that I have to add a -scores- option to my
>> -predict- command. I have written the model in method -lf-. I had a
>> look at some of the built-in multi-equation estimation commands, but
>> I could not really see how the scores are obtained.
>
> see: -ml score- and -help _score_spec-.
>
> Hope this helps,
> Maarten
>
>
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology
> Vrije Universiteit Amsterdam
> Boelelaan 1081
> 1081 HV Amsterdam
> The Netherlands
>
> visiting address:
> Buitenveldertselaan 3 (Metropolitan), room Z434
>
> +31 20 5986715
>
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
>
>
>      __________________________________________________________
> Not happy with your email address?.
> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
> *
> *   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