Learn R Programming

rbvs (version 1.0.2)

distance.cor: Measure an impact of the covariates on the response using the distance correlation This function evaluates the distance correlation between the response y and each column in the design matrix x over subsamples in subsamples.

Description

Measure an impact of the covariates on the response using the distance correlation This function evaluates the distance correlation between the response y and each column in the design matrix x over subsamples in subsamples.

Usage

distance.cor(x, y, subsamples, index = 1, ...)

Arguments

x
Matrix with n observations of p covariates in each row.
y
Response vector with n observations.
subsamples
Matrix with m indices of N subsamples in each column.
index
Positive scalar.
...
Not in use.

Value

Numeric p by N matrix with distance correlations evaluated for each subsample.

References

Maria L. Rizzo and Gabor J. Szekely (2014). energy: E-statistics (energy statistics). R package version 1.6.1 (http://CRAN.R-project.org/package=energy).