
gwplot
, a method for objects of class nn
, typically
produced by neuralnet
.
Plots the generalized weights (Intrator and Intrator, 1993) for one specific covariate and one response variable.gwplot(x, rep = NULL, max = NULL, min = NULL, file = NULL,
selected.covariate = 1, selected.response = 1, highlight = FALSE,
type="p", col = "black", ...)
nn
plot.default
.par
).neuralnet
data(infert, package="datasets")
print(net.infert <- neuralnet( case~parity+induced+spontaneous, infert,
err.fct="ce", linear.output=FALSE, family=binomial()))
gwplot(net.infert, selected.covariate="parity")
gwplot(net.infert, selected.covariate="induced")
gwplot(net.infert, selected.covariate="spontaneous")
Run the code above in your browser using DataLab