Re: [R] Pairwise n for large correlation tables?

2006-08-11 Thread Adam D. I. Kramer
On Tue, 8 Aug 2006, [EMAIL PROTECTED] wrote: Try this: # mat is test matrix mat - matrix(1:25, 5) mat[2,2] - mat[3,4] - NA crossprod(!is.na(mat)) Exactly what I was looking for! Thanks. --Adam On 8/7/06, Adam D. I. Kramer [EMAIL PROTECTED] wrote: Hello, I'm using a very large data

[R] Pairwise n for large correlation tables?

2006-08-07 Thread Adam D. I. Kramer
Hello, I'm using a very large data set (n 100,000 for 7 columns), for which I'm pretty happy dealing with pairwise-deleted correlations to populate my correlation table. E.g., a - cor(cbind(col1, col2, col3),use=pairwise.complete.obs) ...however, I am interested in the number of cases used to

Re: [R] Pairwise n for large correlation tables?

2006-08-07 Thread Gabor Grothendieck
Try this: # mat is test matrix mat - matrix(1:25, 5) mat[2,2] - mat[3,4] - NA crossprod(!is.na(mat)) On 8/7/06, Adam D. I. Kramer [EMAIL PROTECTED] wrote: Hello, I'm using a very large data set (n 100,000 for 7 columns), for which I'm pretty happy dealing with pairwise-deleted correlations

Re: [R] Pairwise n for large correlation tables?

2006-08-07 Thread Christos Hatzis
PROTECTED] On Behalf Of Adam D. I. Kramer Sent: Monday, August 07, 2006 10:04 PM To: r-help@stat.math.ethz.ch Subject: [R] Pairwise n for large correlation tables? Hello, I'm using a very large data set (n 100,000 for 7 columns), for which I'm pretty happy dealing with pairwise-deleted correlations