local_slope: Calculate and test the local slope of the plot at large...

Description Usage Arguments Value Author(s) References See Also Examples

Description

Calculates the effective slope of the plot at large values and tests the deviation of the largest value from that line (Cox, 2011).

Usage

1

Arguments

p

Vector of p-values.

k

Number of 'top' k values.

Value

local_slope

The estimated local slope of the plot at large values.

test_statistic

The value of the test statistic.

Fvalue

The upper 5% value of the F distribution with 2 and 2k degress of freedom, which is the distribution of the test statistic under the null hypothesis.

pvalue

The p-value of the test.

Author(s)

Christiana Kartsonaki

References

Cox, D. R. (2011). Discovery: a statistical perspective. Phystat Conference CERN. <doi:10.5170/CERN-2011-006>

See Also

plot_pvalues

Examples

1
2
3
4
# generate a vector of p values
p <- runif(100, 0, 1)

local_slope(p, 10)


Search within the ManyTests package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.