Learn R Programming

QRFCCA (version 1.0)

cca: Canonical Correlation Analysis

Description

Conduct the canonical correlation anlaysis between two sets of variables.

Usage

cca(A, B)

Arguments

A

The input data matrix of the first set of the variables. Each row of A represents the observations of a single individual. Each column of A represents the variables.

B

The input data matrix of the second set of the variables. Each row of B represents the observations of a single individual. Each column of B represents the variables.

Value

The output is a list.

rho

a numeric vector of canonical correlation coefficients

chisq_p

p_value between 0 and 1 by using chi-square test

df

degree of freedom

See Also

CCA_chisq_test,qcca

Examples

Run this code
# NOT RUN {
    data(phe_data);
    data(snp_data);
    rlt = cca(phe_data,snp_data);
# }

Run the code above in your browser using DataLab