Determines higher dimension dependence coefficients based on co-partial moment matrices ratios.
NNS.copula(
X,
target = NULL,
continuous = TRUE,
plot = FALSE,
independence.overlay = FALSE
)
Returns a multivariate dependence value [0,1].
a numeric matrix or data frame.
numeric; Typically the mean of Variable X for classical statistics equivalences, but does not have to be. (Vectorized) (target = NULL)
(default) will set the target as the mean of every variable.
logical; TRUE
(default) Generates a continuous measure using degree 1 PM.matrix, while discrete FALSE
uses degree 0 PM.matrix.
logical; FALSE
(default) Generates a 3d scatter plot with regression points.
logical; FALSE
(default) Creates and overlays independent Co.LPM and Co.UPM regions to visually reference the difference in dependence from the data.frame of variables being analyzed. Under independence, the light green and red shaded areas would be occupied by green and red data points respectively.
Fred Viole, OVVO Financial Systems
Viole, F. (2016) "Beyond Correlation: Using the Elements of Variance for Conditional Means and Probabilities" tools:::Rd_expr_doi("10.2139/ssrn.2745308").
if (FALSE) {
set.seed(123)
x <- rnorm(1000) ; y <- rnorm(1000) ; z <- rnorm(1000)
A <- data.frame(x, y, z)
NNS.copula(A, target = colMeans(A), plot = TRUE, independence.overlay = TRUE)
### Target 0
NNS.copula(A, target = rep(0, ncol(A)), plot = TRUE, independence.overlay = TRUE)
}
Run the code above in your browser using DataLab