View source: R/cancor_permute.R
cancor_permute | R Documentation |
Compute summary statistic (e.g. canonical correlation, F-statistic, likelihood ratio test statistic) and obtain p-value based on permutation test.
cancor_permute(x, y, method, num_permutations, alternative, component_id = 1)
x |
A vector or data frame. |
y |
A vector or data frame. |
method |
Specify analysis_type: cancor, pearson, spearman, regression |
num_permutations |
Number of permutations (by default: 100). |
alternative |
A character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". |
componen_id |
An index to extract canonical correlation component (by default: 1). |
A data frame of summary statistic and p-value
Boyang Zhang <bzhang34@jhu.edu>, Hongkai Ji
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.