pValueFromT: Function returns the p value from correlation.

View source: R/pearson.R

pValueFromTR Documentation

Function returns the p value from correlation.

Description

Function returns the p value from correlation.

Usage

pValueFromT(t, n1, n2 = 0, var.equal = TRUE)

Arguments

t

numeric representing observed t-statistic

n1

integer representing sample size of the first sample

n2

integer representing sample size of the second sample, n2=0 implies that it's a one-sample

var.equal

logical, TRUE is equal, cannot have unequal, because we don't have access to s1 and s2

Value

list of three p-values


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