Message-ID: <AC4E5FA8-EF8F-4A86-BF06-70530D25793D@comcast.net>
Date: 2012-09-11T18:56:23Z
From: David Winsemius
Subject: How to get curve information from a gam model
In-Reply-To: <1347376131890-4642785.post@n4.nabble.com>
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