View source: R/analysis_functions.R
This function runs the .cca Canonical Correlation Analysis function multiple times to assess variability in the CCA loadings and canonical correlations Because bootstrap resampling can change the order of canonical variates that are extracted, or sign flipping can occur in some cases (i.e. a very similar latent variable is extracted but on some occasions the loadings are mostly positive or negative), we rotate the loadings in each bootstrap resample to map onto the loadings generated from the full, raw input datsets.
1 2 3 4 5 6 7 8 |
X_FIT |
Numeric Matrix or Data Frame [N, P1] containing the predictor variables. |
Y_FIT |
Numeric Matrix or Data Frame [N, P2] containing the outcome variables. |
ncomp |
Numeric Scalar. Number of CCA components to keep in analyses. Must be equal to or less than min(P1,P2). |
Nboot |
Numeric Scaler. Number of times to repeat bootstrap resampling. |
ProcrustX |
Numeric Matrix [ncomp, P1] containing target matrix for Procrustes Analysis. All CCA predictor raw coefficients obtained during the bootstrap resampling will be rotated to this target matrix. |
ProcrustY |
Numeric Matrix [ncomp, P2] containing target matrix for Procrustes Analysis. All CCA outcome raw coefficients obtained during the bootstrap resampling will be rotated to this target matrix. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.