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

st: RE: RE: Re: chi squared matrix


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Re: chi squared matrix
Date   Tue, 23 Nov 2004 17:14:10 -0000

Correct. 

In principle the matrix should be symmetric. 

When -matrix- looked at it in your case it decided 
that it was, and in my case that it wasn't. 

Why one executable differs from another in this respect
I don't know. I am using Stata/SE for Windows born 
6 October 2004. 

I am clear that this discrepancy arises with -matrix 
list- which is not my code, but part of the executable. 

Nick 
n.j.cox@durham.ac.uk 

Amy Dunbar
 
> This is just a comment regarding something n.j.cox@durham.ac.uk wrote:
> >I am not clear why Stata does not regard the last matrix
> as symmetric. 
> 
> I believe Nick was referring to the following:
> mat li pval
> 
> pval[5,5]
>            i1         i2         i3         i4         i5
> i1  1.524e-23  .90369711  .28195568   .5464936  .45622921
> i2  .90369711  1.524e-23  .47066711  .22864426  .51488065
> i3  .28195568  .47066711  1.524e-23  .15738391   .6243488
> i4   .5464936  .22864426  .15738391  1.524e-23  .31643784
> i5  .45622921  .51488065   .6243488  .31643784  1.524e-23
> 
> When I ran the program, my output showed the following:
> 
> . mat li pval
> 
> symmetric pval[5,5]
> 	i1         i2		i3		i4		i5
> i1  1.524e-23
> i2  .71177073  1.524e-23
> i3  .24091847  .23566281	1.524e-23
> i4  .16491549  .55345377	.83506637	1.524e-23
> i5   .8427192  .08038425	.9211625	.32666272
> 1.524e-23
> 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index