Learn R Programming

yap (version 0.1.1)

pnn.pfi: Derive the PFI rank of all predictors used in the PNN

Description

The function pnn.pfi derives the PFI rank of all predictors used in the PNN It essentially is a wrapper around the function pnn.x_pfi.

Usage

pnn.pfi(net, ntry = 1000, seed = 1)

Arguments

net

A PNN object generated by pnn.fit()

ntry

The number of random permutations to try, 1e3 times by default

seed

The seed value for the random permutation

Value

A dataframe with PFI values of all predictors in the PNN

See Also

pnn.x_pfi

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.pfi(pnet)
# }

Run the code above in your browser using DataLab