cancor_permute: Calculate summary statistic and perform permutation test

View source: R/cancor_permute.R

cancor_permuteR Documentation

Calculate summary statistic and perform permutation test

Description

Compute summary statistic (e.g. canonical correlation, F-statistic, likelihood ratio test statistic) and obtain p-value based on permutation test.

Usage

cancor_permute(x, y, method, num_permutations, alternative, component_id = 1)

Arguments

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).

Value

A data frame of summary statistic and p-value

Author(s)

Boyang Zhang <bzhang34@jhu.edu>, Hongkai Ji


byzhang23/TreeCorTreat documentation built on May 7, 2024, 8:37 a.m.