David Katz
2008-Apr-09 15:18 UTC
[R] mgcv::predict.gam lpmatrix for prediction outside of R
This is in regards to the suggested use of type="lpmatrix" in the documentation for mgcv::predict.gam. Could one not get the same result more simply by using type="terms" and interpolating each term directly? What is the advantage of the lpmatrix approach for prediction outside R? Thanks. -- View this message in context: http://www.nabble.com/mgcv%3A%3Apredict.gam-lpmatrix-for-prediction-outside-of-R-tp16587009p16587009.html Sent from the R help mailing list archive at Nabble.com.
Simon Wood
2008-Apr-13 18:04 UTC
[R] mgcv::predict.gam lpmatrix for prediction outside of R
On Wednesday 09 April 2008 16:18, David Katz wrote:> This is in regards to the suggested use of type="lpmatrix" in the > documentation for mgcv::predict.gam. Could one not get the same result more > simply by using type="terms" and interpolating each term directly? What is > the advantage of the lpmatrix approach for prediction outside R? Thanks.-- You can get standard errors on the predictions if you do the `lpmatrix' interpolation thing. best, Simon --> Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK > +44 1225 386603 www.maths.bath.ac.uk/~sw283