Learn R Programming

yap (version 0.1.1)

pnn.imp: Derive the importance rank of all predictors used in the PNN

Description

The function pnn.imp derives the importance rank of all predictors used in the PNN It essentially is a wrapper around the function pnn.x_imp.

Usage

pnn.imp(net)

Arguments

net

A PNN object generated by pnn.fit()

Value

A dataframe with important values of all predictors in the PNN

See Also

pnn.x_imp

Examples

Run this code
# NOT RUN {
data(iris, package = "datasets")
Y <- iris[, 5]
X <- scale(iris[, 1:4])
pnet <- pnn.fit(x = X, y = Y)
# }
# NOT RUN {
pnn.imp(pnet)
# }

Run the code above in your browser using DataLab