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-1598 (O)
(908) 656-0306 (M)
(646) 380-2689 (F)

From: David Winsemius [via R] [mailto:ml-node+s789695n4642822h94@n4.nabble.com]
Sent: Tuesday, September 11, 2012 3:00 PM
To: Eugene Xu
Subject: Re: How to get curve information from a gam model


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

______________________________________________
[hidden email]</user/SendEmail.jtp?type=node&node=4642822&i=0> 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.

________________________________
If you reply to this email, your message will be added to the discussion below:
http://r.789695.n4.nabble.com/How-to-get-curve-information-from-a-gam-model-tp4642785p4642822.html
To unsubscribe from How to get curve information from a gam model, click here<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4642785&code=ZXh1QGxpYnJlbWF4LmNvbXw0NjQyNzg1fDg4MjI4NzM1>.
NAML<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


This communication and any attachments may contain
confidential/proprietary information and is intended for information
purposes only. It is not an invitation or offer to purchase interests from
LibreMax Capital, LLC or any of its funds. Any representation to the
contrary is unintentional. This communication is intended only for the
person(s) to whom it is addressed. If you are not the intended recipient
you are hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this message or
any attachments is not permitted. If you have received this in error,
please notify the sender immediately by e-mail and delete this message.
All e-mails sent to or received from this address will be received by
LibreMax Capital's company e-mail system and are subject to archival and
possible review by someone other than the recipient.



--
View this message in context: http://r.789695.n4.nabble.com/How-to-get-curve-information-from-a-gam-model-tp4642785p4642823.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]


