powered by
The aim in three-way deletions is to retain only the largest number of available data triplets with all non-missing data.
naTriplet(x, y, ctrl)
Vector of x data
Vector of y data
Data matrix on the control variable(s) kept beyond causal path determinations
A new vector x after removing triplet-wise missing data
A new vector or matrix y after removing triplet-wise missing data
A new vector or matrix ctrl after removing triplet-wise missing data
See napair.
napair
# NOT RUN { # } # NOT RUN { x=sample(1:10);y=sample(1:10);x[2]=NA; y[3]=NA w=sample(2:11) naTriplet(x,y,w) # } # NOT RUN { # }
Run the code above in your browser using DataLab