Function to do pairwise deletion of missing rows.
The aim in pair-wise deletions is to retain the largest number of available data pairs with all non-missing data.
napair(x, y)
x
: Vector of x datay
: Vector of y datanewx: A new vector x after removing pairwise missing data
newy: A new vector y after removing pairwise missing data
## Not run: x=sample(1:10);y=sample(1:10);x[2]=NA; y[3]=NA napair(x,y) ## End(Not run)
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
Useful links