Learn R Programming

nda (version 0.3.0)

spdCor: Semipartial Distance-Correlation Matrix

Description

Forms an asymmetric semipartial distance-correlation matrix from distance covariances.

Usage

spdCor(x, test = FALSE, adjust = "BH", alpha = NULL,
       parallel = FALSE, cores = 1L)

Value

A matrix, or a list with matrices r and p when test = TRUE.

Arguments

x

Numeric matrix or data frame.

test

Return approximate coefficient p-values.

adjust

Method passed to p.adjust.

alpha

Optional adjusted-p filtering threshold.

parallel

Calculate distance-covariance pairs in parallel where supported.

cores

Requested core count.

Details

When the distance-covariance matrix is singular, a Moore-Penrose generalized inverse is used. The optional p-values use a t approximation and should be interpreted as screening diagnostics.

Examples

Run this code
x <- matrix(rnorm(100), 20, 5); spdCor(x)

Run the code above in your browser using DataLab