Hi Rosie,
The trouble seems to be that mgcv does not have a method for calculating partial residuals. That is, residuals.gam() won't take the argument type="partial". residuals.glm DOES have this method, though, and from my quick scan of the functions it should give you correct values. So, before running termplot, do this:
tmp.resid.gam <- residuals.gam
residuals.gam <- residuals.glm
Who knows what other functions this might break, so after you plot be sure to restore it with
residuals.gam <- tmp.resid.gam
Be sure to sanity check the values on your plot.
Noam
--
Check out our R resources at http://www.noamross.net/davis-r-users-group.html
---
You received this message because you are subscribed to the Google Groups "Davis R Users' Group" group.
To unsubscribe from this group, send email to davis-rug+...@googlegroups.com.
Visit this group at http://groups.google.com/group/davis-rug?hl=en.