View source: R/copula_transformation.R
copula_transformation | R Documentation |
Transforms the entries an arbitrary copula so they can be compatible with the first two moments of a timeseries.
copula_transformation(x, copula)
x |
A multivariate (non-tidy) dataset. |
copula |
A copula. |
Under the hood, the copula transformation is a 4-step recipe:
1. Normalize the copula to have a standard normal distribution;
2. Operate an affine transformation on the normalized variables;
3. Do the CMA Separation step on the new rotated variables;
4. Extract the copula component that results from step 3.
A tabular (non-tidy) tibble
.
x <- matrix(diff(log(EuStockMarkets)), ncol = 4) sep <- cma_separation(x) clayton <- fit_copula_clayton(sep) gen <- generate_copulas(clayton, 10) copula_transformation(x, gen)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.