predict.Qindex: Predicted Sign-Adjusted Quantile Indices

View source: R/predict.Qindex.R

predict.QindexR Documentation

Predicted Sign-Adjusted Quantile Indices

Description

To predict sign-adjusted quantile indices of a test set.

Usage

## S3 method for class 'Qindex'
predict(object, newdata = object@gam$data, ...)

Arguments

object

an Qindex object based on the training set.

newdata

test data.frame, with at least the response y^{\text{new}} and the double matrix of functional predictor values X^{\text{new}} of the test set, tabulated on the same p-grid as the training set X. If missing, the training set object@gam$data will be used.

...

additional parameters, currently not in use.

Details

Function predict.Qindex computes the predicted sign-adjusted quantile indices on the test set, which is the product of function predict.gam return and the correlation sign based on training set (object@sign, see Step 3 of section Details of function Qindex). Multiplication by object@sign is required to ensure that the predicted sign-adjusted quantile indices are positively associated with the training functional predictor values at the selected tabulating grid.

Value

Function predict.Qindex returns a double vector, which is the predicted sign-adjusted quantile indices on the test set.


Qindex documentation built on April 4, 2025, 2:14 a.m.