View source: R/predict.Qindex.R
predict.Qindex | R Documentation |
To predict sign-adjusted quantile indices of a test set.
## S3 method for class 'Qindex'
predict(object, newdata = object@gam$data, ...)
object |
an Qindex object based on the training set. |
newdata |
test data.frame, with at least
the response |
... |
additional parameters, currently not in use. |
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.
Function predict.Qindex returns a double vector, which is the predicted sign-adjusted quantile indices on the test set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.