sig: significance Get simplified correlation coefficients and...

get_sigR Documentation

significance Get simplified correlation coefficients and significance stars

Description

significance Get simplified correlation coefficients and significance stars

significance Get difference analysis results and significance labeling. The core source of this function comes from rstatix and agricolae.

Usage

get_sig(p_value, level = 3, p_adj_method = "none")

sig_label(
  formula,
  data,
  test = c("wilcox_test", "t_test", "dunn_test", "tukey_hsd", "HSD.test", "duncan.test",
    "LSD.test", "SNK.test"),
  p.adjust.method = "none",
  alpha = 0.05,
  quantile_function = "qt"
)

Arguments

p_value

p_value table

level

significance level

p_adj_method

?stats::p.adjust.methods

formula

a formula of the form x ~ group where x is a numeric variable giving the data values and group is a factor with one or multiple levels giving the corresponding groups. For example, formula = TP53 ~ cancer_group.

data

a data.frame containing the variables in the formula.

test

the name of the statistical test that is applied to the values. "wilcox_test", "t_test", "dunn_test", "tukey_hsd" comes from rstatix, "HSD.test", "duncan.test", "LSD.test", "SNK.test" comes from agricolae.

p.adjust.method

method to adjust p values for multiple comparisons. This parameter only works with the test method from rstatix.

alpha

Significant level

quantile_function

Quantile function to compute the confidence interval. Default is qt which means the t distribution and qnorm means norm distribution.

Value

Convert significance numbers to ***.

Difference analysis results and significance labeling.

Examples

get_sig(c(0.6, 0.00001, 0.0001, 0.001, 0.01, 0.04), level = 5)
sig_label(disp ~ gear, mtcars)

yanpd01/yyeasy documentation built on Dec. 1, 2022, 10:58 p.m.