napair function

Function to do pairwise deletion of missing rows.

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)

Arguments

  • x: Vector of x data
  • y: Vector of y data

Returns

  • newx: A new vector x after removing pairwise missing data

  • newy: A new vector y after removing pairwise missing data

Examples

## Not run: x=sample(1:10);y=sample(1:10);x[2]=NA; y[3]=NA napair(x,y) ## End(Not run)

Author(s)

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

  • Maintainer: H. D. Vinod
  • License: GPL (>= 2)
  • Last published: 2023-10-09

Useful links