[R] missing values and gam (was: how to handle missing values)
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:
(it is a pre-release version, so there will be bugs, reports of which
> 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.
> R-help at stat.math.ethz.ch mailing list
More information about the R-help