Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


fields (version 6.3)

predict.derivative: Predicted derivatives

Description

Calculates the partial derivatives.

Usage

predict.derivative(object, ...)

## S3 method for class 'default': predict.derivative( object, ...)

Arguments

object
A fitted model object that support a derivative=1 argument in the call to predict or a Krig object.
...
Additional arguments to be passed usually the locations to evaluate the derivatives.

Value

  • The target returned object is intended to be a matrix of parital derivatives. The columns being the partial derivatives and the rows the locations.

Details

This function is generic with the default to just call predict with derivative=1. There is a special version for Krig objects because a separate function was designed to evaluate derivatives.

See Also

predict, predict.surface.derivative

Examples

Run this code
data(ozone2)
  fit<- Tps( ozone2$lon.lat, ozone2$y[16,]) 
  hold<- predict.derivative(fit)                           
  set.panel(2,1)
  quilt.plot( fit$x, hold[,1])
  quilt.plot( fit$x, hold[,2])
# lazy plots -- better to create a grid of points and evaluate on grid. 
  set.panel()

Run the code above in your browser using DataLab