Displaying 1 result from an estimated 1 matches for "nofit".
Did you mean:
nfit
2009 Feb 25
1
monotonic GAM with more than one term
...sp=f.ug$sp,
p=sm$xp,
Ain = FF$A,
bin = FF$b
)
p<-pcls(G) # fit spline (using s.p. from unconstrained fit)
fv<-Predict.matrix(sm,data.frame(x=x))%*%p
# can we do this without calling smoothCon directly ?
# also having trouble here.
f.nofit<-gam(y~m+s(x,k=10,by=m,bs="cr"),fit=FALSE)
FF2 <- mono.con(f.nofit$smooth[[1]]$xp)
stopifnot(identical(FF, FF2))
G2 <- list(y = f.nofit$y,
w = f.nofit$w,
X = f.nofit$X,
C = f.nofit$C,
S = f.nofit$smooth[[1]]$S,...