threshold_conversion: Pval_threshold to threshold conversion

Description Usage Arguments

Description

Converts p-value threshold to test-statistic threshold, or the other way around.

Usage

1
2
3
threshold_conversion(x, test_statistic = c("z", "t", "F", "chisq",
  "correlation"), pval_threshold = 0.05, threshold = NULL, df1 = NULL,
  df2 = NULL)

Arguments

x

the observed test-statistic.

test_statistic

the type of test-statistic

pval_threshold

the threshold a pvalue must cross (be lesser than) in order for the test-statistic to be observed. Only one of pval_threshold or threshold must be specified, and the other one must be set to NULL.

threshold

an alternative way to specifiy a threshold. If a z, t, or correlation then selection rule is assumed to be abs(x) > threshold. If F or chisq then the selection rule is assumed to be x > threshold. Takes precedence to pval_threshold. Only one of pval_threshold or threshold must be specified, and the other one must be set to NULL.

df1

the degrees of freedom for t and chisq statistics. The sample size for Pearson's correlation. The numerator degrees of freedom for an F statistic.

df2

the denominator degrees of freedom for an F statistic.


ammeir2/CoReAnalysis documentation built on May 17, 2019, 1:28 p.m.