| neuralnet | R Documentation |
Neural Network by Multilayer Perceptron
neuralnet(
object,
formula,
factor = 1,
hidden = c(2),
linear.output = FALSE,
...
)
object |
Object of class |
formula |
A formula specifying the model to be fitted. If not provided, the response variable is taken from the |
factor |
The factor to be used as response. If |
|
Vector with numbers of neurons in the hidden layers. | |
linear.output |
Logical. If |
... |
Additional arguments passed to |
A neuralnet object that can be inspected and plotted.
Analyses using GEM: elastic, pca, sca, neuralnet, pls.
Confidence interval plots: confints. Convenience knock-in and knock-out of effects: knock.in.
data(candies, package = "HDANOVA")
gemC <- GEM(assessment ~ assessor*candy, data=candies)
# Neural network model
nn <- neuralnet(gemC, factor = "candy", hidden = c(2))
plot(nn, rep="best")
# Network weights (input and hidden layers)
nn$weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.