napair {generalCorr} | R Documentation |
Function to do pairwise deletion of missing rows.
Description
The aim in pair-wise deletions is to retain the largest number of available data pairs with all non-missing data.
Usage
napair(x, y)
Arguments
x |
Vector of x data |
y |
Vector of y data |
Value
newx |
A new vector x after removing pairwise missing data |
newy |
A new vector y after removing pairwise missing data |
Author(s)
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
Examples
## Not run:
x=sample(1:10);y=sample(1:10);x[2]=NA; y[3]=NA
napair(x,y)
## End(Not run)
[Package generalCorr version 1.2.6 Index]