Dear Simon,
Thanks ! It works !
Best,
Le lundi 1 mai 2023 à 11:19:26 UTC+2, Simon Wood a écrit
:
try...
sum(residuals(model1)^2)
On 30/04/2023 22:03, varin sacha via R-help wrote:
> Dear R-experts,
>
> Here below my R code. I get a NaN response for gam with mgcv library. How to
try...
sum(residuals(model1)^2)
On 30/04/2023 22:03, varin sacha via R-help wrote:
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,2
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"
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.
4 matches
Mail list logo