[R] How to get curve information from a gam model

David Winsemius dwinsemius at comcast.net
Tue Sep 11 20:56:23 CEST 2012


On Sep 11, 2012, at 8:08 AM, exu wrote:

> I'm using library(mgcv)
> 
> I did a gam regression like this
> 
> model <- gam(formula = y ~ s(x), family="binomial")
> 
> Now I'd like to get 2 vectors x and z (with z=s(x)), so that I can implement
> the model outside R.  How can I do this?

?predict.gam

-- 

David Winsemius, MD
Alameda, CA, USA




More information about the R-help mailing list