Learn R Programming

generalCorr (version 1.2.6)

napair: 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)

Value

newx

A new vector x after removing pairwise missing data

newy

A new vector y after removing pairwise missing data

Arguments

x

Vector of x data

y

Vector of y data

Author

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

Examples

Run this code

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