Skip to content
Prev 44579 / 398503 Next

Obtaining SE from the hessian matrix

On Thu, Feb 19, 2004 at 09:22:09AM -0800, Thomas Lumley wrote:

            
Yes, the covariance matrix is inverse of the Hessian, that's clear.
But my queston is, why in the first example:

    > sqrt(diag(2*out$minimum/(length(y) - 2) * solve(out$hessian)))
	      
    The 2 in the line above represents the number of parameters. A 95%
    confidence interval would be the parameter estimate +/- 1.96 SE. We
    can superimpose the least squares fit on a new plot:

- we don _not_ use simply 'sqrt(diag(solve(out$hessian)))', how in the
second example, but also include in some way "number of parameters" == 2?
What does '2*out$minimum/(length(y) - 2)' multiplier mean?

Thanks!

--
WBR,
Timur.