View source: R/datamanagement.R
pre_comput_NN | R Documentation |
Computes intermediate quantities for evaluating SLGP basis functions using Nearest Neighbor (NN) interpolation over a regular grid in the normalized domain.
pre_comput_NN(
normalizedData,
predictorNames,
responseName,
nIntegral = 101,
nDiscret = 51
)
normalizedData |
A normalized data frame (values in |
predictorNames |
Character vector of covariate names. |
responseName |
Name of the response variable. |
nIntegral |
Number of grid points for discretizing the response domain. |
nDiscret |
Number of grid points for discretizing the covariate domain. |
A list of intermediate quantities used in SLGP evaluation:
nodes
: grid of response × covariates,
indNodesToIntegral
: response bin indices,
indSamplesToNodes
: sample-to-node index mapping,
weightSamplesToNodes
: equal weights for NN interpolation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.