Skip to content
Prev 3064 / 7419 Next

gam

On 05/17/2012 06:17 PM, Mahnaz Rabbaniha wrote:
It means that you don't have a lot of different values for one of your 
covariates. You can check which with

length(unique(depth))
length(unique(temperature))
length(unique(salinity))

Unless you have a lot of data, that the sensible thing to is probably to 
fit a straight line rather than a smooth curve. The other thing to do is 
to define the maximum flexibility of the curve, e.g.

model<-gam(Sillaginidae~s(temperature, k=6)+s(salinity)+s(depth))

I hope this helps.

Bob