Evaluation of a neural net fit based on a model component

Usage

predict.netfit(fit, x, derivative=0)

Arguments

fit A model component of an nnreg object
x A matrix of x values on which to evaluate the neural net surface.
derivative Derivative of function are returned if derivative=1.

Value

A vector of predicted responses. If derivative=1 a vector of derivatives or a matrix of partial derivatives is returned.

See Also

nnreg, predict.nnreg

Examples

nnreg(ozone$x,ozone$y,1,2) -> fit           # nnreg fit
cbind(seq(87,89,,10),seq(40,42,,10)) -> x   # new x matrix
predict(fit$model[[1]],x) -> out            # evaluate model 1 at x


[Package Contents]