GLM with squared terms failed with the following error on one of my habitat models:
Error in qr.solve(qr.R(qr.lm(object))[p1, p1]) :
singular matrix 'a' in solve
Calls: FitModels ... predict -> predict -> predict.glm -> predict.lm -> qr.solve
In addition: There were 50 or more warnings (use warnings() to see the first 50)
Execution halted
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The BRT ran successfully (with 6 warnings). We're going with the BRT models anyway, but just wanted to check in with y'all on whether this error means a problem in the data that I ought to ferret out and fix.
--Michelle