preLago {lago} | R Documentation |
This procedure is useful for saving computational time, especially if the LAGO procedure will be called repeatedly on the same data, e.g., during cross validation.
preLago(y, X)
y |
a vector of binary reponses; training data. |
X |
a matrix of covariates/predictors, training data. |
Returns an n1
-by-n0
matrix whose entries are the pairwise distances between all class-1 observations and all
class-0
observation in the training data X
.
Alexandra Laflamme-Sanders, University of Waterloo, Canada.