Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict_fof_pc

Use a function-on-function linear regression model for prediction


Description

Predict new observations of the functional response variable and calculate the corresponding prediction error (and their standardized or studentized version) given new observations of functional covariates and a fitted function-on-function linear regression model.

Usage

predict_fof_pc(object, mfdobj_y_new, mfdobj_x_new)

Arguments

object

A list obtained as output from fof_pc, i.e. a fitted function-on-function linear regression model.

mfdobj_y_new

An object of class mfd containing new observations of the functional response.

mfdobj_x_new

An object of class mfd containing new observations of the functional covariates.

Value

A list of mfd objects. It contains:

* pred_error: the prediction error of the standardized functional response variable,

* pred_error_original_scale: the prediction error of the functional response variable on the original scale,

* y_hat_new: the prediction of the functional response observations on the original scale,

* y_z_new: the standardized version of the functional response observations provided in mfdobj_y_new,

* y_hat_z_new: the prediction of the functional response observations on the standardized/studentized scale.

References

Centofanti F, Lepore A, Menafoglio A, Palumbo B, Vantini S. (2020) Functional Regression Control Chart. Technometrics. <doi:10.1080/00401706.2020.1753581>


funcharts

Functional Control Charts

v1.0.0
GPL-3
Authors
Christian Capezza [cre, aut], Fabio Centofanti [aut], Antonio Lepore [aut], Alessandra Menafoglio [aut], Biagio Palumbo [aut], Simone Vantini [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.