| Library: | nn |
| See also: | nnrnet nnrpredict |
| Quantlet: | ann | |
| Description: | a tool to run a feed-forward neural network |
| Usage: | ann(x, y, t {, varname}) | |
| Input: | ||
| x | n x p matrix, input variables | |
| y | n x q matrix, output variables | |
| t | n x 1 vector of sets (0=training, 1=test, 2=validation) | |
| varname | p x 1 vector, variable names (unused) | |
library("nn")
x = read("kredit")
t = read("tkredit")
y = x[,1]
x = x[,2:21]
x =(x-min(x))./(max(x)-min(x))
ann(x, y, t)
runs a user-specified neural network for the kredit data of Fahrmeier and Hammerle.