The partial residuals for a smooth term are just the whole model residuals +
the corresponding estimate of the smooth term. You can use predict to access
the latter and compute them quite easily. For example...
set.seed(0) ## simulate some data...
dat <- gamSim(1,n=400,dist="normal",sc
Dear list,
does anybody know whether there is a way to easily retrieve the so called
"partial residuals" of a gam fit with package mgcv? The partial residuals are
the residuals you would get if you would "leave out" a particular predictor and
are the dots in the plots created by
plot(gam.obje
2 matches
Mail list logo