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

Description Usage Arguments Value See Also Examples

View source: R/pnn.pfi.R

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

1
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

1
2
3
4
5
6
data(iris, package = "datasets")
Y <- iris[, 5]
X <- scale(iris[, 1:4])
pnet <- pnn.fit(x = X, y = Y)

pnn.pfi(pnet)

yap documentation built on Oct. 26, 2020, 1:06 a.m.

Related to pnn.pfi in yap...