powered by
The aim in pair-wise deletions is to retain the largest number of available data pairs with all non-missing data.
napair(x, y)
A new vector x after removing pairwise missing data
A new vector y after removing pairwise missing data
Vector of x data
Vector of y data
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
if (FALSE) { x=sample(1:10);y=sample(1:10);x[2]=NA; y[3]=NA napair(x,y)}
Run the code above in your browser using DataLab