Description Usage Arguments Value See Also Examples
View source: R/Copula_Threshold_2D.R
Declustered excesses of a (conditioning) variable are paired with co-occurences of the other variable before the best fitting bivariate copula is selected, using BiCopSelect
function in the VineCopula
package, for a single or range of thresholds. The procedure is automatically repeated with the variables switched.
1 2 3 4 | Copula_Threshold_2D(Data_Detrend, Data_Declust, Thres = seq(0.9, 0.99,
0.01), x_lim_min = min(Thres), x_lim_max = max(Thres),
y_lim_min = -1, y_lim_max = 1, Upper = 0, Lower = 0,
GAP = 0.05, Legend = TRUE)
|
Data_Detrend |
Data frame containing two at least partially concurrent time series, detrended if necessary. Time steps must be equally spaced, with missing values assigned |
Data_Declust |
Data frame containing two (independently) declustered at least partially concurrent time series. Time steps must be equally spaced, with missing values assigned |
Thres |
A single or sequence of thresholds, given as a quantile of the observations of the conditioning variable. Default, sequence from |
x_lim_min |
Numeric vector of length one specifying x-axis minimum. Default is the maximum argument in |
x_lim_max |
Numeric vector of length one specifying x-axis maximum. Default is the minimum argument in |
y_lim_min |
Numeric vector of length one specifying y-axis minimum. Default |
y_lim_max |
Numeric vector of length one specifying y-axis maximum. Default |
Upper |
Numeric vector specifying the element number of the |
Lower |
Numeric vector specifying the element number of the |
GAP |
Numeric vector of length one specifying the distance above or below the copula family name label appears the corresponding point on the Kendall's tau coefficient vs threshold plot. Default is |
Legend |
Logic vector of length one specifying whether a legend should be plotted. Default is |
List comprising:
Kendalls_Tau_Var1
Kendall's tau of a sample
p_value_Var1
p-value when testing the null hypothesis H_0: tau=0
i.e. that there is no correlation between the variables
N_Var1
Size of the dataset
Copula_Family_Var1
Best fitting copula for the specified thresholds
when the dataset is conditioned on the variable in column 1.
Analogous vectors Kendalls_Tau_Var2
,p_value_Var2
, N_Var2
and Copula_Family_Var2
for the specified thresholds when the dataset is conditioned on the variable in column 2.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.