[R] Zero mean correlation Matrix

2008-10-20 Thread AliR
Hi,, I want to use the existing cor function in R but with a different way to compute the correlation method.. basically zero mean correlation. The forumula I have is 'D' <- function(c1, c2) sum(c1*c2, na.rm=T)/(sqrt(sum(c1*c1, na.rm=T))*sqrt(sum(c2*c2, na.rm=T))) I am not sure how i can

Re: [R] Applying lm to data with combn

2008-02-09 Thread AliR
Thank you, can you suggest wht is the shortest way to store the combination with min residual error term? AliR wrote: > > http://www.nabble.com/file/p15359204/test.data.csv > http://www.nabble.com/file/p15359204/test.data.csv test.data.csv > > Hi, > > I have used

[R] Applying lm to data with combn

2008-02-08 Thread AliR
http://www.nabble.com/file/p15359204/test.data.csv http://www.nabble.com/file/p15359204/test.data.csv test.data.csv Hi, I have used apply to have certian combinations, but when I try to use these combinations I get the error [Error in eval(expr, envir, enclos) : object "X.GDAXI" not found].