femiguez / nlraa

Nonlinear Regression for Agricultural Applications
https://femiguez.github.io/nlraa-docs/index.html
22 stars 2 forks source link

Prediction for GLMs and GAMs should use type = "response" #19

Closed femiguez closed 2 years ago

femiguez commented 2 years ago

If I want to include GLMs and GAMs in the model averaging method, prediction should be type = "response" when the family is not gaussian with the identity link

femiguez commented 2 years ago

It appears that this is a minor issue. It emerged when trying to use models fitted with 'glm' which I never considered. Models fitted with gam should work fine, after a minor change