cor_wrap: cor_wrap

Description Usage Arguments Value Author(s)

View source: R/cor_wrappers.R

Description

Wrapper for cor.test with controlled returns

Usage

1
cor_wrap(x, y, method = "pearson", what = c("all", "cor", "conf", "pval"), ...)

Arguments

x

Numeric vector

y

Numeric vector

method

Which correlation to compute. Takes as special value 'chatterjee' to compute revised Chatterjee correlation coefficient (no p values returned in that case)

...

Other parameters passed to cor.test

return

Whether to return only the correlation coefficient, the confidence interval, the p value, or all

Value

what If all, a named list, otherwise a numeric vector

Author(s)

Jesko Wagner


jeskowagner/XIM documentation built on Feb. 10, 2022, 7:18 p.m.