dth_cor: X-Y Correlation and Statistical Tests for multiple categories...

View source: R/dth_cor_test.R

dth_corR Documentation

X-Y Correlation and Statistical Tests for multiple categories using data.table

Description

X-Y Correlation and Statistical Tests for multiple categories using data.table

Usage

dth_cor(
  DT,
  x,
  y,
  by,
  method = "spearman",
  alternative = "two.sided",
  exact = NULL,
  conf.level = 0.95,
  continuity = FALSE,
  trim = TRUE
)

Arguments

DT
x
y
by
method
alternative
exact
conf.level
continuity
trim

Examples

require(data.table)
DT <- as.data.table(iris)
# uses spearman method by default
dth_cor(DT, x = 'Sepal.Length', y = 'Sepal.Width', by = 'Species')

# set trim = F if you want all the extra information (mostly useless)
dth_cor(DT, x = 'Sepal.Length', y = 'Sepal.Width', by = 'Species',trim = FALSE)


dbrookeUAB/dth documentation built on Oct. 6, 2022, 10:52 p.m.