Related Experiment Video
Updated: Nov 14, 2025

An R-Based Landscape Validation of a Competing Risk Model
Published on: September 16, 2022
Conditional canonical correlation estimation based on covariates with random forests
Cansu Alakuş1, Denis Larocque1, Sébastien Jacquemont2,3
1Department of Decision Sciences, HEC Montréal, Montréal, QC H3T 2A7, Canada.
Motivation:
Investigating the relationships between two sets of variables helps to understand their interactions and can be done with canonical correlation analysis (CCA). However, the correlation between the two sets can sometimes depend on a third set of covariates, often subject-related ones such as age, gender or other clinical measures. In this case, applying CCA to the whole population is not optimal and methods to estimate conditional CCA, given the covariates, can be useful.
Results:
We propose a new method called Random Forest with Canonical Correlation Analysis (RFCCA) to estimate the conditional canonical correlations between two sets of variables given subject-related covariates. The individual trees in the forest are built with a splitting rule specifically designed to partition the data to maximize the canonical correlation heterogeneity between child nodes. We also propose a significance test to detect the global effect of the covariates on the relationship between two sets of variables. The performance of the proposed method and the global significance test is evaluated through simulation studies that show it provides accurate canonical correlation estimations and well-controlled Type-1 error. We also show an application of the proposed method with EEG data.
Availability And Implementation:
RFCCA is implemented in a freely available R package on CRAN (https://CRAN.R-project.org/package=RFCCA).
Supplementary Information:
Supplementary data are available at Bioinformatics online.
Related Concept Videos
Correlation and Regression
Multiple Regression
Farmers can use multiple regression to determine the crop yield based on more than one factor, such as water availability, fertilizer, soil properties, etc. Here, the crop yield is the response or dependent variable as it depends on the other independent variables. The analysis requires the construction of a scatter plot...
Coefficient of Correlation
If you suspect a linear relationship between x and y, then r can measure how strong the linear relationship is.
What the VALUE of r tells us:
The value of r is always between –1 and +1: –1 ≤ r ≤ 1.
The size of the correlation r indicates the...
Correlation of Experimental Data
For example, a spherical particle moving through a viscous fluid experiences drag. Dimensional analysis shows that the drag force depends on the particle's diameter, velocity,...
Comparing the Survival Analysis of Two or More Groups
Friedman Two-way Analysis of Variance by Ranks

