regressionFunction.NN: Nearest Neighbors Regression

Description Usage Arguments Value

View source: R/regressionFittingFunctions.R

Description

This function is typically not directly used by the user; it is used inside fitFlexCoDE

Usage

1
regressionFunction.NN(x, responses, extra = NULL)

Arguments

x

matrix with covariates that will be used for training

responses

matrix where each column is a response for the training data

extra

list with one component named nNeighVec, which contains a vetor with different number of neighbors; the function will choose the best value among them

Value

object of the class NN containing information need to perform prediction on new points


rizbicki/FlexCoDE documentation built on Feb. 10, 2022, 3:14 p.m.