naTriple function

Function to do matched deletion of missing rows from x, y and z variable(s).

Function to do matched deletion of missing rows from x, y and z variable(s).

The aim in three-way deletions is to retain only the largest number of available data triplets with all non-missing data. This works where naTriplet fails (e.g.parcorVecH()). This is called by parcorHijk

naTriple(x, y, z)

Arguments

  • x: Vector of x data
  • y: Vector of y data
  • z: vector or a matrix of additional variable(s)

Returns

  • newx: A new vector x after removing triplet-wise missing data

  • newy: A new vector or matrix y after removing triplet-wise missing data

  • newz: A new vector or matrix ctrl after removing triplet-wise missing data

Examples

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

See Also

See napair naTriplet.

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