| Library: | nn |
| See also: | nnrnet ann |
| Macro: | nnrpredict | |
| Description: | estimates for a given net and dataset the response. |
| Usage: | yh=nnrpredict(x, net) | |
| Input: | ||
| x | n x p matrix input variables | |
| net | composed object from nnrnet | |
| Output: | ||
| y | n x q matrix reponse variables | |
x = read("kredit1")
t = read("tkredit")
y = x[,1]
x = x[,2:21]
x = (x-min(x))./(max(x)-min(x))
net = nnrnet (x, y, matrix(rows(x)), 10)
yh = nnrpredict (x, net)
runs a neural network with 10 hidden units for the kredit data of Fahrmeier and Hammerle and computes the predicted values.
| Library: | nn |
| See also: | nnrnet ann |