Re: [R] gam

From: Simon Wood <sw283_at_maths.bath.ac.uk>
Date: Thu 26 Jan 2006 - 21:15:10 EST

> I'm new to both R and to this list and would like to get
> advice on how to build generalized additive models in R.
> Based on the description of gam, which I found on the R
> website, I specified the following model:
> model1<-gam(ST~s(MOWST1),family=binomial,data=strikes.S),
> in which ST is my binary response variable and MOWST1 is a
> categorical independent variable.
>
> I get the following error message:
> Error in smooth.construct.tp.smooth.spec(object, data,
> knots) :
> NA/NaN/Inf in foreign function call (arg 1)

best,
Simon



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jan 26 21:28:00 2006

This archive was generated by hypermail 2.1.8 : Fri 27 Jan 2006 - 02:18:29 EST