CoReAnalysis: Conditional replication analysis

Description Usage Arguments

Description

Computes conditional maximum likelihood estimators and confidence confidence intervals for test-statistics that were selected based on their significance.

Usage

1
2
3
CoReAnalysis(x, test_statistic = c("z", "t", "F", "chisq", "correlation"),
  pval_threshold = 0.05, threshold = NULL, df1 = NULL, df2 = NULL,
  confidence_level = 0.95, normalize = FALSE)

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.

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.

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.

confidence_level

the desired confidence level for the confidence interval.


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