Statalist


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

Re: st: gradient for each observation from ml


From   "Stas Kolenikov" <[email protected]>
To   [email protected]
Subject   Re: st: gradient for each observation from ml
Date   Fri, 18 Jul 2008 12:20:44 -0500

If you are coding this as -d1- or -d2- method, you have to code the
derivatives, anyway. If you are using -lf-, then there should be some
technical temporary variables created by Stata, but you should not
mess with them (I tried for some of my projects, and it never worked
as intended).

You might want to switch to Mata and -optimize- where a lot of things
come more naturally in terms of matrix computations.

On 7/18/08, Michael Anthony Carlton <[email protected]> wrote:
>  Does anyone know if there is a way to get the calculated gradient (or outer
>  product of the gradient) for each observation used in an ml command? I am
>  estimating a multivariate fractional response model where the first step is
>  to estimate a multivariate "probit" for each time period and the second step
>  is to estimate the final parameters using minimum distance. I need to use
>  the observation level OPG to estimate the correlation between time periods
>  in order to create the optimal weighting matrix for the MD estimation.

-- 
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: Please do not reply to my Gmail address as I don't check
it regularly.
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index