Learn R Programming

ManyTests (version 1.2)

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

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

local_slope(p, k)

Arguments

p
Vector of p-values.
k
Number of 'top' k values.

Value

References

Cox, D. R. (2011). Discovery: a statistical perspective. Phystat Conference CERN.

See Also

plot_pvalues

Examples

Run this code
# generate a vector of p values
p <- runif(100, 0, 1)

local_slope(p, 10)

Run the code above in your browser using DataLab