
lm.nri(formula, preddata = NULL, ...)
glm.nri(formula, preddata = NULL, ...)
lm
, glm
and generic print.default
Nri
. The list in the slot multivariate contains the new (g)lm information which depends on the kind of model which is applied:
lm.nri
:
The list contains the following items:
glm.nri
:
The list contains the following items (depending on formula used):
lm
and glm
for any additional information. Note that this function does not store the entire information returned from a normal (g)lm-model. To get full (g)lm-models use either the function nri_best_performance
to return best performing model(s) or extract nri-values with getNRI
and build directly the model from respective index.
See details in Nri-plot
-method for information about plotting.
plot
, lm
, glm
, getNRI
data(spectral_data)
## Calculate all possible combinations for WorldView-2-8
spec_WV <- spectralResampling(spectral_data, "WorldView2-8",
response_function = FALSE)
nri_WV <- nri(spec_WV, recursive = TRUE)
glmnri <- glm.nri(nri_WV ~ chlorophyll, preddata = spec_WV)
glmnri
plot(glmnri)
Run the code above in your browser using DataLab