[R] gam - Extraction of nonparametric component

From: Michael A. Milligan <pakdke_at_yahoo.com>
Date: Mon, 10 Mar 2008 10:36:56 -0700 (PDT)


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. Received on Mon 10 Mar 2008 - 17:42:33 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 - 18:30:20 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