p.cor: Calculate the p-value of correlation coefficient.

Description Usage Arguments Value

View source: R/GenePattern.R

Description

Calculate the significant level of correlation coefficient.

Usage

1
p.cor(x, y = NULL, method = "pearson", correct = "BH", ...)

Arguments

x

A numeric vector, matrix or data frame.

y

NULL (default) or a vector, matrix or data frame with compatible dimensions to x. The default is equivalent to y = x (but more efficient).

method

A character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated.

correct

Correction method for p-value, see p.adjust.

...

Additional arguments passed on to cor.

Value

The matrix of the p-value of correlation coefficient.


charliex210/sctools documentation built on Dec. 29, 2021, 11:19 p.m.