Re: [R] gam - Extraction of nonparametric component

From: Wensui Liu <liuwensui_at_gmail.com>
Date: Mon, 10 Mar 2008 13:53:12 -0400

i could remember exactly but it is like something: components <- predict(gam.object, type = "terms")

On Mon, Mar 10, 2008 at 1:36 PM, Michael A. Milligan <pakdke_at_yahoo.com> wrote:
> Hello,
>
> I am estimating a semiparametric partial linear model
> using gam of the form
>
> y=f1(x1)+f2(x2)+beta*X
>
> where y is the dependent variable, f1(x1) and f2(x2)
> are nonparametric functions of the independent
> variables x1 and x2, respectively, and beta and X are
> vectors of coefficients and independent variables.
> The R code is
>
> EqGamAS <- gam(y ~ X+s(x1)+s(x2))
>
> My question is, how can I extract the fitted values
> of, say, f1(x1)? Of course fitted(EqGamAS) returns
> the fitted values of the entire regression function,
> but is there a way to view only one component of the
> nonparametric part of the estimation? I have looked
> through documentation and help archives and have not
> found the answer. I appreciate very much any help
> anyone can give me.
>
> Michael Milligan
> Doctoral Candidate
> University of New Mexico
>
>
> ____________________________________________________________________________________
> Be a better friend, newshound, and
>
> ______________________________________________
> R-help_at_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.
>

-- 
===============================
WenSui Liu
ChoicePoint Precision Marketing
Phone: 678-893-9457
Email : wensui.liu_at_choicepoint.com
Blog   : statcompute.spaces.live.com

______________________________________________
R-help_at_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.
Received on Mon 10 Mar 2008 - 17:56:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Mar 2008 - 19:31:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive