Predict method for an EQRN_seq fitted object
Usage
# S3 method for class 'EQRN_seq'
predict(object, ...)Arguments
- object
Fitted
"EQRN_seq"object.- ...
Arguments passed on to
EQRN_predict_seqXMatrix of covariates to predict the corresponding response's conditional quantiles.
YResponse variable vector corresponding to the rows of
X.prob_lvls_predictVector of probability levels at which to predict the conditional quantiles.
intermediate_quantilesVector of intermediate conditional quantiles at level
fit_eqrn$interm_lvl.interm_lvlOptional, checks that
interm_lvl == fit_eqrn$interm_lvl.crop_predictionsWhether to crop out the fist
seq_lenobservations (which areNA) from the returned matrix.seq_lenData sequence length (i.e. number of past observations) used to predict each response quantile. By default, the training
fit_eqrn$seq_lenis used.device(optional) A
torch::torch_device(). Defaults todefault_device().
Value
Matrix of size nrow(X) times prob_lvls_predict
(or nrow(X)-seq_len times prob_lvls_predict if crop_predictions)
containing the conditional quantile estimates of the corresponding response observations at each probability level.
Simplifies to a vector if length(prob_lvls_predict)==1.
Details
See EQRN_predict_seq() for more details.