Learn R Programming

rbvs (version 1.0.2)

pearson.cor: Measure an impact of the covariates on the response using Pearson correlatio. This function evaluates the Pearson correlation coefficient 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 Pearson correlatio. This function evaluates the Pearson correlation coefficient between the response y and each column in the design matrix x over subsamples in subsamples.

Usage

pearson.cor(x, y, subsamples, ...)

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.
...
Not in use.

Value

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