do_corr: do_corr

Description Usage Arguments Examples

View source: R/do_corr.R

Description

do_corr

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
do_corr(
  x,
  y = NULL,
  method = c("spearman", "kendall", "pearson")[1],
  use = "complete.cases",
  conf = 0.95,
  R = 999,
  sim = "balanced",
  ci_type = c("bca"),
  p_adjust_method = p.adjust.methods[1],
  ss = p05plus
)

## S3 method for class 'do_corr'
print(
  x,
  ...,
  digits = 2,
  digits_p = 3,
  ss = attr(x, "ss"),
  p_col = c("p", "p.adj")
)

## S3 method for class 'do_corr'
pander(
  x,
  ...,
  caption = "The results of correlation analysis",
  digits = 2,
  digits_p = 3,
  ss = attr(x, "ss"),
  p_col = c("p", "p.adj")
)

Arguments

x, y, method, use, conf, R, sim, ci_type, p_adjust_method, ss

# FIXME: not documented

Examples

1
2
3
4
5
6
data(iris)
ans <- do_corr(iris[, -5])
ans

library(pander)
pander(ans)

GegznaV/BioStat documentation built on Aug. 14, 2020, 9:30 p.m.