[R] mgcv::predict.gam lpmatrix for prediction outside of R

Simon Wood s.wood at bath.ac.uk
Sun Apr 13 20:04:59 CEST 2008


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



More information about the R-help mailing list