preLago {lago}R Documentation

Preliminary calculation for LAGO

Description

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.

Usage

preLago(y, X)

Arguments

y a vector of binary reponses; training data.
X a matrix of covariates/predictors, training data.

Value

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.

Author(s)

Alexandra Laflamme-Sanders, University of Waterloo, Canada.

See Also

sLago, eLago


[Package lago version 0.1-1 Index]