View source: R/cma_separation.R
cma_separation | R Documentation |
First CMA step: decomposes the the pure "individual" features in the marginals from the pure "joint" information available in the copulas.
cma_separation(x, p = NULL) ## Default S3 method: cma_separation(x, p = NULL) ## S3 method for class 'matrix' cma_separation(x, p = NULL) ## S3 method for class 'xts' cma_separation(x, p = NULL) ## S3 method for class 'data.frame' cma_separation(x, p = NULL) ## S3 method for class 'tbl' cma_separation(x, p = NULL)
x |
A rectangular (non-tidy) data structure. |
p |
A probability vector. If |
Arguments x
and p
must have the same size.
An S3 list of the cma
class that contains three elements:
marginal
, cdf
and copula
.
cma_combination
set.seed(123) margins <- matrix(stats::rnorm(30), ncol = 3) colnames(margins) <- c("a", "b", "c") cma <- cma_separation(x = margins) cma # Access the elements with `$` cma$copula cma$marginal cma$cdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.