[R] mulitple mixed regression with spline

From: james lumley <jalumley_at_gmail.com>
Date: Fri 24 Jun 2005 - 18:42:08 EST

Hi, I'm looking to implement a regression with mixed terms. I have 2 biological endpoints for a dataset of n=77, one linearly related and the other fits a spline. I want to combine these two terms in a linear regression for prediction, then apply the model to a test set.

this works fine, good r2 and I've graphed the spline. m1<-lm(y~x1,data=train)
m2<-smooth.spline(x2,y); (spl)

what i want is

any tips? sorry, fairly new user.


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 24 18:57:33 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:02 EST