Hello,

I'd like to understand 'what' is predicting the response for library(mgcv)
gam?

For example:

library(mgcv)
fit <- gam(y~s(x),data=as.data.frame(l_yx),family=binomial)
xx <- seq(min(l_yx[,2]),max(l_yx[,2]),len=101)
plot(xx,predict(fit,data.frame(x=xx),type="response"),type="l")

I want to see the generalized function(s) used to predict the response that
is plotted above. In other words, f(x) = {[what?]}. I'm new to gam and
relatively new to R. I did read ?gam, but I didn't see what I wanted.

Thanks,

Ben

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to