Computes matrix that relates predicted values to the vector of dependent variables (Y)

Usage

make.Amatrix.krig(out, x0, lambda)

Arguments

out The output object from using krig to fit a data set
x0 The points where the function is to be predicted
lambda Value of the smoothing parameter. Default is value in the krig object.

Value

A matrix such that when multiplied times Y gives the predicted values of the spline at the points x0

References

FUNFITS manual

See Also

krig, make.Amatrix, predict.se.krig

Examples

# Compute the A matrix or "hat" matrix for a thin plate spline
# check that this gives the same predicted values

krig( ozone$x, ozone$y, exp.cov)-> krig.out
make.Amatrix( krig.out, ozone$x)-> A
A%*%ozone$y -> test.fitted.values
# now compare this to predict( krig.out) or krig.out$fitted.values
#                    they are all  the same!


[Package Contents]