risk_estimates {portvine} | R Documentation |
Accessor methods for the risk estimates of (cond_)portvine_roll
objects
Description
Accessor methods for the risk estimates of (cond_)portvine_roll
objects
Usage
risk_estimates(
roll,
risk_measures = NULL,
alpha = NULL,
df = TRUE,
exceeded = FALSE,
...
)
## S4 method for signature 'portvine_roll'
risk_estimates(
roll,
risk_measures = NULL,
alpha = NULL,
df = TRUE,
exceeded = FALSE
)
## S4 method for signature 'cond_portvine_roll'
risk_estimates(
roll,
risk_measures = NULL,
alpha = NULL,
df = TRUE,
exceeded = FALSE,
cond = TRUE,
cond_u = NULL
)
Arguments
roll |
Object of class |
risk_measures |
Character vector of risk measures to filter for. Note
that they must be fitted in the |
alpha |
Numeric |
df |
Logical value if |
exceeded |
Logical value. If set to |
... |
Additional parameters for child class methods |
cond |
If set to TRUE returns the conditional risk estimates and otherwise returns the overall risk estimates. |
cond_u |
Numeric or character vector specifying the corresponding
quantiles
in (0,1) of the conditional variable(s) conditioned on which the conditional
risk measures were calculated to filter for and/or the class
"prior_resid"/"resid".
Note that they must be fitted in the |
Value
(Un-)filtered data.frame
or data.table
(see df
argument) with
at least the columns
risk_measure
, risk_est
, alpha
, row_num
, vine_window
and realized
.
exceeded
column if the corresponding argument is set to TRUE
.
In the conditional case further columns are available (see:
portvine_roll
).