predict.WR: Predict responses for a new sample given a WR object

predict.WRR Documentation

Predict responses for a new sample given a WR object

Description

Predict responses for a new sample given a WR object

Usage

## S3 method for class 'WR'
predict(object, Xpred, ...)

Arguments

object

A WR object, i.e., an output of WR.

Xpred

A list holding the values of distributional and/or scalar predictors for a held-out set awaiting prediction. The form and structure are similar to the input X of WR, except that the number of realizations awaiting prediction can be different from the number of realizations n used to fit the model.

...

Not used.

Value

A list of the following

Ypred

Predicted responses; either a vector of length n for scalar responses or a q-by-n matrix holding the quantile functions for distributional responses, evaluated on qSup, where q is the length of qSup.

qSup

The input qSup, only returned when the responses are distributional.

outOfLogSpace

A logical vector holding whether initial predicted log mapped distributions lie out of the log image space (TRUE) or not (FALSE), only returned when the responses are distributional.


yqgchen/WR documentation built on June 10, 2025, 6:04 p.m.