get_max_correlations: Computes the max correlation between each factor of the...

View source: R/test_stability.R

get_max_correlationsR Documentation

Computes the max correlation between each factor of the decomposition done using the whole dataset to each factor computed using the subsampled/bootstrapped dataset

Description

Computes the max correlation between each factor of the decomposition done using the whole dataset to each factor computed using the subsampled/bootstrapped dataset

Usage

get_max_correlations(res_full, res_sub, res_use)

Arguments

res_full

matrix Either the donor scores or loadings matrix from the original decomposition

res_sub

matrix Either the donor scores or loadings matrix from the new decomposition

res_use

character Can either be 'loadings' or 'dscores' and should correspond with the data matrix used

Value

a vector of the max correlations for each original factor


scITD documentation built on Sept. 8, 2023, 5:11 p.m.