cor_pval: Function to return the p.value of a two.sided test, using the...

Description Usage Arguments Value

View source: R/datacollation.R

Description

Function to return the p.value of a two.sided test, using the spearman correlation coefficient for the test This function is created to work with find_correlations

Usage

1
cor_pval(Var1, Var2, method = "spearman")

Arguments

Var1

first variable of interest

Var2

second variable of interest

Value

p.value of a two.sided test, using the spearman correlation coefficient for the test. pvalue are computed via the asymptotic t approximation (exact=FALSE). return NA if no p.value has been computed, instead of NULL.


robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.