Re: [R] calculating correlation coefficients on repeated measures

2011-12-19 Thread Sarah Goslee
Hi Keith, You do need to reorganize your data. cor() will work on any number of variables as long as they are columns in a matrix or data frame. There are a lot of ways to reorganize data, of various power and complexity. Here's one simple way: library(ecodist) WW_Sample_table -

[R] calculating correlation coefficients on repeated measures

2011-12-18 Thread Keith Larson
Dear list, I have 9 repeated measures (measurement variable == 'Delta13C') for individuals (ID variable == 'Individual_ID'. Each repeated measure is indexed (right term?) by the variable 'FeatherPosition' and given as c('P1', 'P2', 'P3', 'P4', 'P5', 'P6', 'P7', 'P8', 'P9'). I would like to

Re: [R] Calculating correlation

2010-11-23 Thread Tal Galili
Hi Gireesh, I seem to be missing something. Could you give me the formula you think should be used to calculate this? I don't get how you wish to get a correlation for only one pair of numbers. (or maybe I didn't understood what you explained - please try a simpler example)

Re: [R] Calculating correlation

2010-11-23 Thread gireesh bogu
in one output x - S1 i.e. 112 with all combinations ex: 112 vs 3 [ x-S1 vs a -S1] 112 vs 4 [ x-S1 vs a- S2 ] 112 vs 45 112 vs 34 112 vs 23 112 vs 112 …. ….. 112 vs 1 in second output x - S2 i.e. 0 with all . ex: 0 vs 3 0 vs 4 ……… ……… 0 vs 1 in next output x-S3

Re: [R] Calculating correlation

2010-11-23 Thread Liviu Andronic
Hello On Tue, Nov 23, 2010 at 7:57 AM, gireesh bogu girishb...@gmail.com wrote: Hi guys I have an input file with multiple columns and and rows. Is it possible to calculate correlation of certain value of certain No (For example x of S1 = 112) with all other values (for example start with x

[R] Calculating correlation

2010-11-22 Thread gireesh bogu
Hi guys I have an input file with multiple columns and and rows. Is it possible to calculate correlation of certain value of certain No (For example x of S1 = 112) with all other values (for example start with x 112 corr a 3 of S1 = x-a 0.2 ) INPUT *** No S1 S2 S3 S4 Sn a3 4

Re: [R] Calculating correlation

2010-11-22 Thread Tal Galili
Hi there, I'm not sure I understand your question. What are the two vectors you wish to check their correlation? Are they the two rows x and a? Because from your example it seems you are trying to do a correlation between two singular numbers (so probably I didn't get something straight). Tal

[R] Calculating correlation for a big matrix

2008-11-20 Thread A Ezhil
Dear All, I have a matrix of size 1 x 50. I would like to calculate all possible pair-wise correlation coefficient (5x10^7 combinations) using cor(). How can I efficiently calcualte and save the result in a matrix? Thanks in advance. Kind regards, Ezhil

Re: [R] Calculating correlation for a big matrix

2008-11-20 Thread Charles C. Berry
On Thu, 20 Nov 2008, A Ezhil wrote: Dear All, I have a matrix of size 1 x 50. I would like to calculate all possible pair-wise correlation coefficient (5x10^7 combinations) using cor(). How can I efficiently calcualte and save the result in a matrix? By using cor()?? res -

Re: [R] Calculating correlation for a big matrix

2008-11-20 Thread Liviu Andronic
On Fri, Nov 21, 2008 at 1:27 AM, A Ezhil [EMAIL PROTECTED] wrote: I have a matrix of size 1 x 50. I would like to calculate all possible pair-wise correlation coefficient (5x10^7 combinations) using cor(). How can I efficiently calcualte and save the result in a matrix? You might also

Re: [R] calculating correlation of a Supply/Demand measure and price change (in high frequency time series data)

2007-10-28 Thread Uwe Ligges
Kenneth Spriggs wrote: Regarding financial data: I have a high frequency (1 minute) I never understand people from economics, that 1 minute *high* frequency sampling is roughly 250 times less frequent than things I am analyzing. ;-) measure of supply/demand and I'd like to know if

Re: [R] calculating correlation of a Supply/Demand measure and price change (in high frequency time series data)

2007-10-28 Thread A.R. Criswell
Wow... Some people can really be high frequency snobs! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal,

[R] calculating correlation of a Supply/Demand measure and price change (in high frequency time series data)

2007-10-27 Thread Kenneth Spriggs
Regarding financial data: I have a high frequency (1 minute) measure of supply/demand and I'd like to know if it has any influence on short term price changes (also 1 minute). Question: How do I calculate the correlation between this supply/demand measure and price changes (correctly)? Some