predict.netfit {funfits} | R Documentation |
predict.netfit(fit, x, derivative=0)
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. |
A vector of predicted responses. If derivative=1 a vector of derivatives or a matrix of partial derivatives is returned.
nnreg, predict.nnreg
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