search for: hstep

Displaying 1 result from an estimated 1 matches for "hstep".

Did you mean: step
2007 Dec 12
0
Hep on using GAM() in R
...i used? What does these warnings mean? Q2: As we know, the span is an important role for smoothing, so i try to choose the optimal span by the AIC criterion. But it seemed that i can't run it successfully, My codes are listed below. hmin<-0.05; hmax<-0.95; hstart<-hmin; nh<-100 hstep<-(hmax-hmin)/(nh-1) aic.h<- matrix(NA,nrow=nh,ncol=2) for (i in 1:nh) { htry<-hstart+(i-1)*hstep m.gam <-gam(mark~lo(x,y,span=htry)+lo(lstday2004,span=htry)+lo(slope,span=htry)+lo(ndvi2004,span=htry)+lo(elevation,span=htry)+disbinary,family=binomial(logit),data=point) aic.h[i,2]...