pval_corr: P-value for coefficient of correlation between two variables

View source: R/pval_corr.R

pval_corrR Documentation

P-value for coefficient of correlation between two variables

Description

Calculates the p-value for a given coefficient of correlation between two variables, using the t-statistic (student-t distribution).

Usage

pval_corr(r, n, side = c("two", "one"))

Arguments

r

The coefficient of correlation to test

n

Sample size from the sample

side

To either get a two-tail or one-tail p-value (Default is "two")

Value

P-value

Examples

r <- 0.597
n <- 10
pval_corr(r, n)


maxgav13/GMisc documentation built on June 12, 2022, 3:48 a.m.