Hi all!
Ive got some problems with the function gam (library mgcv). For some
models I get the error message :
Error: no valid set of coefficients has been found:please supply
starting values
In addition: Warning message:
NaNs produced in: log(x)
This is a shortened code I used:
gam(y ~ M1 + M3
My guess is that your model is predicting a negative mean for some of your
data. Since this is not possible for a Gamma r.v. the deviance calculation
returns something non finite, which triggers the error message. This is
possible because you have used an identity link. Is it not possible to