predict.derivative {fields}R Documentation

Predicted derivatives

Description

Calculates the partial derivatives.

Usage

predict.derivative(object, ...)

## Default S3 method:
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.

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.

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.

See Also

predict, predict.surface.derivative

Examples

  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()



[Package fields version 6.6.3 Index]