[R] missing values and gam (was: how to handle missing values)
Simon Wood
simon at stats.gla.ac.uk
Thu Jul 17 12:00:54 CEST 2003
mgcv 0.9 will handle missing values properly (provided you are happy that
dropping them is 'proper'). There is a pre-release version at:
www.stats.gla.ac.uk/~simon/simon/mgcv.html
(it is a pre-release version, so there will be bugs, reports of which
gratefully received!)
simon
> Thank you for all the responses on generalized additive models(gam) and
> missing values. I am now able set up a model using gam and have a certain
> understanding of how R deals with missing values.
>
> The problem is, however, I am still not able to a gam model that is from a
> dataset that contains missing values.
>
> The function
>
> C<-gam(depvar~var1+var2+s(var3), data=dataset)
> Returns the errors
>
> Error in na.omit.default() : Argument "object" is missing, with no default
>
> Again, can anyone help a newbie.
>
> Tor
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
More information about the R-help
mailing list