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)
Vector of x data
Vector of y data
A new vector x after removing pairwise missing data
A new vector y after removing pairwise missing data
# NOT RUN { # } # NOT RUN { x=sample(1:10);y=sample(1:10);x[2]=NA; y[3]=NA napair(x,y) # } # NOT RUN { # }
Run the code above in your browser using DataLab