get_sorted_corrs_pairwise_features: Correlations between each pairwise feature and y

Description Usage Arguments Value Examples

View source: R/get_siblings.R

Description

Correlations between each pairwise feature and y

Usage

1
get_sorted_corrs_pairwise_features(pairwise_feature_mat, y)

Arguments

pairwise_feature_mat

a matrix with scores from feature pair comparison (rows) for each sample (cols)

y

vector with quantitative outcome variable

Value

a sorted list of pairwise features based on their pearson correlation with y

Examples

1
2
3
4
5
6
7
C <- 100  # represents samples
R <- 200 # represents features
y <- rnorm(C) # represents outcome variable
X <- matrix(rbeta(R*C, 2, 3), nrow = R)  # simulate data matrix
Is <- get_pairwise_rank_matrices(X)
pairwise_feature_mat <- make_feature_pair_score_matrix(Is)
sorted_corrs <- get_sorted_corrs_pairwise_features(pairwise_feature_mat, y)

mdkessler/kTSCR documentation built on Feb. 25, 2021, 10:31 p.m.