pValueFromCor: Computes the the p value based on the observed correlation.

View source: R/pearson.R

pValueFromCorR Documentation

Computes the the p value based on the observed correlation.

Description

Computes the the p value based on the observed correlation.

Usage

pValueFromCor(n, stat, method = c("pearson", "kendall", "spearman"))

Arguments

n

integer representing sample size

method

character, "pearson", "kendall" or "spearman

r

numeric in (-1, 1) representing the sample correlation

Value

list of three p-values


AlexanderLyNL/bstats documentation built on Sept. 11, 2023, 4:10 p.m.