Displaying 1 result from an estimated 1 matches for "tp3246992p3247261".
2011 Jan 30
1
Finding the correlation coefficient of two stocks
veepsirtt wrote:
>
> corr <- cor(s1,s2)
> Error in cor(s1, s2) : incompatible dimensions
>
>
Check lenghts of your series.
cor(c(1,2),c(1,2,3))
#Error in cor(c(1, 2), c(1, 2, 3)) : incompatible dimensions
Dieter
--
View this message in context: http://r.789695.n4.nabble.com/Finding-the-correlation-coefficient-of-two-stocks-tp3246992p3247042.html
Sent from the R help