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

From |
"Michael Blasnik" <[email protected]> |

To |
<[email protected]> |

Subject |
st: Re: Calculating Determinant of Hessian Matrix Over Obervations |

Date |
Mon, 01 Oct 2007 08:38:54 -0400 |

listed, then why not just calculate it directly using -gen-?

gen det=A*C-B^2

Michael Blasnik

----- Original Message ----- From: "Asgar Khademvatani" <[email protected]>

To: <[email protected]>

Sent: Monday, October 01, 2007 7:34 AM

Subject: st: Calculating Determinant of Hessian Matrix Over Obervations

Dear All, I have 43 observation on t he variables A, B, and C. I am trying to make 43 symmetry Hessian matrix(2 by 2) and calculate each matrix determinant and list the calculated determinants for each observation. I have made the following loop but it is subject to error as follows; forvalues i = 1/43 { matrix H = (A[`i'], B[`i'] \ B[`i'], C[`i']) gen det_H = det(H) di "`i'" matrix list Ha_g_1 list det_H } I am getting the following error as follows; +----------+ | det_H | |----------| 1. | 6.28e-13 |

<snip> * * 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/

**Follow-Ups**:**Re: st: Re: Calculating Determinant of Hessian Matrix Over Obervations***From:*Asgar Khademvatani <[email protected]>

**References**:**st: Calculating Determinant of Hessian Matrix Over Obervations***From:*Asgar Khademvatani <[email protected]>

- Prev by Date:
**st: Calculating Determinant of Hessian Matrix Over Obervations** - Next by Date:
**st: Duration models: database preparation** - Previous by thread:
**st: Calculating Determinant of Hessian Matrix Over Obervations** - Next by thread:
**Re: st: Re: Calculating Determinant of Hessian Matrix Over Obervations** - Index(es):

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