Skip to contents

Predicts the response Y for Scalar Functional Data using the analytic L2 inner product. This implementation follows the theory from Chapter 7.

Usage

smoothPLS_SFD_predict(
  df_predict,
  delta_spls,
  basis_obj = NULL,
  id_col = "id",
  time_col = "time",
  parallel = TRUE,
  ...
)

Arguments

df_predict

Dataframe with columns (id, time, value).

delta_spls

List containing (intercept, delta_fd_object).

basis_obj

Optional basis for signal reconstruction. If NULL, uses the basis from delta_fd

id_col

Character, name of id column.

time_col

Character, name of time column.

parallel

a boolean to enable parallel processing, default TRUE.

...

Additional arguments for Data2fd or inprod.

Value

A numeric vector of predicted values

Author

Francois Bassac