Skip to content

scan seems to modify the data

1 message · DJNordlund@aol.com

#
St?phane,

in the example below which you are concerned about, the large correlation you 
see is not a result of the small variance, but rather the 3 random numbers 
you generated just happened to have the same rank ordering as the magnitudes of 
the three coefficients you were correlating them with.  

Just try your example again but repeat your correlation command

cor(x[1,],runif(3))

several times in succession.  You will probably see correlations ranging from 
large and positive to large (in absolute value) and negative to everywhere in 
between.

Dan Nordlund

------------------Original message----------------------
In a message dated 3/31/2004 10:53:03 AM Pacific Standard Time, 
dray at biomserv.univ-lyon1.fr writes: