make.Amatrix.tps {funfits} | R Documentation |
make.Amatrix.tps(out, x0, lambda)
out |
The output object from using tps 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 tps object. |
A matrix such that when multiplied times Y gives the predicted values of the spline at the points x0
FUNFITS manual
tps, make.Amatrix, predict.se.tps
# Compute the A matrix or "hat" matrix for a thin plate spline # check that this gives the same predicted values tps( ozone$x, ozone$y)-> tps.out make.Amatrix( tps.out, ozone$x)-> A A%*%ozone$y -> test.fitted.values # now compare this to predict( tps.out) or tps.out$fitted.values # they should be the same