Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: on symmetry


From   Christopher F Baum <[email protected]>
To   [email protected]
Subject   st: Re: on symmetry
Date   Wed, 11 Jun 2003 07:05:42 -0400

On Wednesday, June 11, 2003, at 02:33 AM, David wrote:

Instead, I'd suggest that Stata develop an internally created and maintained
property for matrices that indicates whether or not it is symmetric.
I ran into this issue a while back when developing outtable, which outputs a matrix as a lower triangle iff symmetric. I thought there was a way to access the internal identifier by which Stata stores only the lower triangle for a matrix which it considers symmetric (e.g. a covariance or correlation matrix). After consulting with Stata's developers, no such luck (there is (or was) no user access to that flag). They suggested that I use the condition
det(mat - mat') to determine whether the matrix was numerically symmetric, which is the test employed by outtable.

Kit

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