count.pairwise: Count number of pairwise cases for a data set with missing (NA) data.
Description
When doing cor(x, use= "pairwise"), it is nice to know the number of cases for each pairwise correlation. This is particularly useful when doing SAPA type analyses.
Usage
count.pairwise(x, y = NULL)
Arguments
x
An input matrix, typically a data matrix ready to be correlated.
y
An optional second input matrix
Value
result = matrix of counts of pairwise observations