Re: [R] NaN response with gam (mgcv library)
There is no "residuals" component of a gam fit, as you could have immediately determined by: > names(model_summ) [1] "p.coeff" "se""p.t" [4] "p.pv" "residual.df" "m" [7] "chi.sq""s.pv" "scale" [10] "r.sq" "family""formula" [13] "n"
[R] NaN response with gam (mgcv library)
Dear R-experts, Here below my R code. I get a NaN response for gam with mgcv library. How to solve that problem? Many thanks. # library(mgcv) y=c(23,24,34,40,42,43,54,34,52,54,23,32,35,45,46,54,34,36,37,48) x1=c(0.1,0.3,0.5,0.7,0.8,0.9,0.