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
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
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
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