internal function. It collects only the data necessary to execute a local prediction for the mbl function based on a list of neighbors. Not valid for local dissmilitary (e.g. for ortho_diss(...., .local = TRUE))
ith_mbl_neighbor(
Xr,
Xu,
Yr,
Yu = NULL,
diss_usage = "none",
neighbor_indices,
neighbor_diss = NULL,
diss_xr_xr = NULL,
group = NULL
)
an object of class
iterator giving the following list:
itemize
the Xr matrix in mbl.
the Xu matrix in mbl.
the Yr matrix in mbl.
the Yu matrix in mbl.
a character string indicating if the dissimilarity data will be used as predictors ("predictors") or not ("none").
a matrix with the indices of neighbors of every Xu found in Xr.
a matrix with the dissimilarity socres for the neighbors
of every Xu found in Xr. This matrix is organized in the same way as
neighbor_indices
.
a dissimilarity matrix between sampes in Xr.
a factor representing the group labes of Xr.
Leonardo Ramirez-Lopez
isubset will look at the order of knn in each col of D and re-organize the rows of x accordingly