Skip to content
Prev 312273 / 398506 Next

Plot with residuals in mgcv

On 2012-11-28 05:02, silje sk?r wrote:
Well, the error means that the matrix X[, first:last] and
the vector object$coefficients[first:last] don't have
'matching' dimensions. I don't see why, but since the
'residuals' argument to plot.gam() can be an array
_of the correct length_ (see ?plot.gam), it just might be
that you have an object called 'T' hanging around, in which
case using 'T' in place of 'TRUE' is a bad idea.
Actually, it's _always_ a bad idea.

Peter Ehlers