[R] gam(mgcv) starting values

2005-02-14 Thread Bjrn Stollenwerk
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

Re: [R] gam(mgcv) starting values

2005-02-14 Thread Simon Wood
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