The function grnn.partial derives the partial effect of a predictor used in a GRNN by average-out values of the rest predictors.
grnn.partial
grnn.partial(net, i, plot = TRUE)
The GRNN object generated by grnn.fit()
The ith predictor in the GRNN
TRUE or FALSE to plot the partial effect
A plot of the partial effect or a dataframe of the partial effect
grnn.margin
# NOT RUN { data(iris, package = "datasets") Y <- ifelse(iris[, 5] == "setosa", 1, 0) X <- scale(iris[, 1:4]) gnet <- grnn.fit(x = X, y = Y) # } # NOT RUN { grnn.partial(gnet, 1, plot = FALSE) # }
Run the code above in your browser using DataLab