internal function. This function is used to obtain the local neighbors based on dissimilarity matrices from orthogonal projections. These neighbors are obatin from an orthogonal projection on a set of precomputed neighbors. This function is used internally by the mbl fucntion. ortho_diss(, .local = TRUE) operates in the same way, however for mbl, it is more efficient to do the re-search of the neighbors inside its main for loop
get_ith_local_neighbors(
ith_xr,
ith_xu,
ith_yr,
ith_yu = NULL,
diss_usage = "none",
ith_neig_indices,
k = NULL,
k_diss = NULL,
k_range = NULL,
spike = NULL,
diss_method,
pc_selection,
ith_group = NULL,
center,
scale,
...
)
a list: itemize
the set of neighbors of a Xu observation found in Xr
the Xu observation
the response values of the set of neighbors of the Xu observation found in Xr
the response value of the xu observation
a character string indicating if the dissimilarity data will be used as predictors ("predictors") or not ("none").
a vector of the original indices of the Xr neighbors.
the number of nearest neighbors to select from the already identified neighbors
the distance threshold to select the neighbors from the already identified neighbors
a min and max number of allowed neighbors when k_diss
is used
a vector with the indices of the observations forced to be
retained as neighbors. They have to be present in all the neighborhoods and
at the top of neighbor_indices
.
the ortho_diss() method
the pc_selection argument as in ortho_diss()
the vector containing the group labes of ith_xr
.
center the data in the local diss computation?
scale the data in the local diss computation?
Leonardo Ramirez-Lopez