Learn R Programming

FRegSigCom (version 0.3.0)

pred.sof.spike: Prediction for linear function-on-function regression on highly sensely observed spiky data

Description

Make predition for the scalar response from the CV object obtained by cv.sof.spike.

Usage

pred.sof.spike(fit.cv, X.test)

Arguments

fit.cv

the CV object obtained by cv.sof.spike.

X.test

new observations for the functional predictors. It is a list of length \(p\), the number of functional predcitors. Each element is the observed matrix from a functional predictor, with rows repsenting observation vectors and columns corresponding to the observation time points.

Value

A matrix containing the predicted response for the new observations. The number of rows is equal to the sample size of the new data set, and the number of columns is equal to the length of t.y.test or t.y when t.y.test=NULL.

See Also

cv.sof.spike

Examples

Run this code
# NOT RUN {
#See the examples in cv.sof.spike().
# }

Run the code above in your browser using DataLab