Description Usage Arguments Value Examples
This function identifies the best elder with which to define the best cluster for regression prediction. Such a cluster is made of pairwise features, the component features of which are termed elder and sibling, where the elder has the highest weighted sum of correlations with y across all pairwise features that it is a component of. Siblings are then the features that make up these pairwise features with elder.
1 | get_siblings(sorted_corrs, elder, elder_corr, cluster_corr_prop = 1)
|
sorted_corrs |
a vector of floats between -1 and 1 representing the the correlation coeficient between a pairwise feature and the outcome variable y. Output by get_sorted_corrs_pairwise_features(). |
elder |
character vector (i.e. string) of the elder index I am up to |
elder_corr |
a length numeric vector (single value with a name) representing the sum weighted total correlation for the elder feature. |
cluster_corr_prop |
kTSCR hyperparameter that determines what proportion oan elders overall correlation weight I want to capture in the included current cluster (which is made of elder sibling pairs). Default value = 1, which represents all elder sibling pairs. |
a list of elder sibling pairs that represent the sibling pairs with elder that comprise the top correlations with y.
1 2 3 4 5 6 7 8 9 10 | C <- 100 # represents samples
R <- 200 # represents features
y <- stats::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)
elder_corr <- get_elder(sorted_corrs)
elder <- names(elder_corr)
siblings <- get_siblings(sorted_corrs, elder, elder_corr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.