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

2012-09-11 Thread David Winsemius
On Sep 11, 2012, at 12:10 PM, exu wrote: > Thanks for the response. But I'm relatively new to R, could you elaborate a > bit? I tried > > P <-predict.gam(model,type=terms") > > But I'm having a hard time to trying to make sense of the resulting data. And I'm having even greater difficulty bec

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

2012-09-11 Thread exu
Thanks for the response. But I'm relatively new to R, could you elaborate a bit? I tried P <-predict.gam(model,type=terms") But I'm having a hard time to trying to make sense of the resulting data. Regards, Eugene Xu LIBREMAX CAPITAL, LLC. 830 Third Avenue Suite 801 NewYork, NY 10022 (212) 612

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

2012-09-11 Thread David Winsemius
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.g

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

2012-09-11 Thread exu
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? Thanks. -- View this message in context: http://r.789695.n4.nabb