R/S.m.r

S.m <- function(gam.fit){
  Ss <- list()
  off <- rank <- 0 
  jj <- 1
	for(j in 1:length(gam.fit$sp) ){
		Ss[[j]] <- gam.fit$smooth[[j]]$S[[1]]
            	rank[j] <- gam.fit$smooth[[j]]$rank
                off[j]  <- gam.fit$smooth[[j]]$first.para                                               
       }
list(rank=rank,off=off,Ss=Ss)
}

Try the bgeva package in your browser

Any scripts or data that you put into this service are public.

bgeva documentation built on May 1, 2019, 7:23 p.m.