[R] missing values and gam (was: how to handle missing values)

Tor A Strand Tor.Strand at cih.uib.no
Thu Jul 17 08:29:06 CEST 2003


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




More information about the R-help mailing list