Displaying 1 result from an estimated 1 matches for "bilin".
Did you mean:
balin
2005 Jun 24
1
mulitple mixed regression with spline
...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
y=x+bilin(x2)
any tips? sorry, fairly new user.
J.