Basically all I want to do is predict a scalar response using some
curves. I've got as far as doing a regression (using fRegress from the
fda package) but have no idea how to apply the results to a NEW set of
curves (for prediction).
I have N=536 curves, and 536 scalar responses. Here's what I've done so
far:
* I've created a basis for the curves.
* I've created a fdPar object to introduce a penalty
* I've created the fd object using smooth.basis to smooth the curves
with the chosen penalty on the specified basis.
* I've ran a regression using fRegress(), regressing the curves on the
scalar response.
Now, all I'd like to do, is use that regression to produce predictions
for a new set of data that I have. I can't seem to find an easy way to
do this.
Cheers
[[alternative HTML version deleted]]