make.Amatrix.krig {funfits} | R Documentation |
make.Amatrix.krig(out, x0, lambda)
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. |
A matrix such that when multiplied times Y gives the predicted values of the spline at the points x0
FUNFITS manual
krig, make.Amatrix, predict.se.krig
# 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!