Description Usage Arguments Details Value Examples
Copula-based direction for a single pair
1 | pairwise_direction(x, y = NULL, cop = NULL, ...)
|
x |
a numeric vector, bivariate matrix or data frame. |
y |
|
cop |
|
... |
additional arguments passed to
|
Assuming that either (a) X := N_X and Y = f(X, N_Y) or (b) Y := N_Y and X = f(Y, N_X), where N_X and N_Y are independent noise processes, this copula-based method recovers the direction, namely (a) X -> Y or (b) Y -> X.
TRUE if X -> Y and FALSE if Y -> X
1 2 3 4 5 6 7 8 | # Y = X^2 + N_Y with Gaussian noises
n <- 1e3
NX <- rnorm(n)
NY <- rnorm(n)
X <- NX
Y <- X^2 + NY
pairwise_direction(X, Y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.