ith_mbl_neighbor: An iterator for local prediction data in mbl

View source: R/local_helpers.R

ith_mbl_neighborR Documentation

An iterator for local prediction data in mbl

Description

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))

Usage

ith_mbl_neighbor(
  Xr,
  Xu = NULL,
  Yr,
  Yu = NULL,
  diss_usage = "none",
  neighbor_indices,
  neighbor_diss = NULL,
  diss_xr_xr = NULL,
  group = NULL
)

Arguments

Xr

the Xr matrix in mbl.

Xu

the Xu matrix in mbl. Default NULL. If not provided, the function will iterate for each {Yr, Xr} to get the respective neighbors.

Yr

the Yr matrix in mbl.

Yu

the Yu matrix in mbl. Default NULL.

diss_usage

a character string indicating if the dissimilarity data will be used as predictors ("predictors") or not ("none").

neighbor_indices

a matrix with the indices of neighbors of every Xu found in Xr.

neighbor_diss

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.

diss_xr_xr

a dissimilarity matrix between sampes in Xr.

group

a factor representing the group labes of Xr.

Details

isubset will look at the order of knn in each col of D and re-organize the rows of x accordingly

Value

an object of class iterator giving the following list: itemize

Author(s)

Leonardo Ramirez-Lopez


resemble documentation built on April 21, 2023, 1:13 a.m.