View source: R/41_refined_anchored_lasso.R
process_fold_mean_diff | R Documentation |
Computes the test statistic, variance, and projection direction for one fold in a cross-validated comparison of two groups.
process_fold_mean_diff(
fold_index,
control,
treatment,
control_split_index,
tr_split_index,
pca_method,
classifier_method,
lambda_type,
group,
verbose
)
fold_index |
Integer index of the current fold. |
control |
Matrix or data frame for the control group (rows = samples, columns = features). |
treatment |
Matrix or data frame for the treatment group (rows = samples, columns = features). |
control_split_index |
A list of row indices for each fold of the control group. |
tr_split_index |
A list of row indices for each fold of the treatment group. |
pca_method |
Character. PCA method to use. Options are |
classifier_method |
Character. Classifier method. Options are |
lambda_type |
Character. Lambda selection method. Options are |
group |
Optional grouping vector for group lasso. |
verbose |
Logical. Whether to print progress messages. |
A list containing the test statistic, its variance, scores for each group, the projection direction, and intermediate quantities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.