Description Usage Arguments Value Author(s) References See Also Examples
Calculates the effective slope of the plot at large values and tests the deviation of the largest value from that line (Cox, 2011).
1 | local_slope(p, k)
|
p |
Vector of p-values. |
k |
Number of 'top' |
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 |
pvalue |
The p-value of the test. |
Christiana Kartsonaki
Cox, D. R. (2011). Discovery: a statistical perspective. Phystat Conference CERN. <doi:10.5170/CERN-2011-006>
1 2 3 4 | # generate a vector of p values
p <- runif(100, 0, 1)
local_slope(p, 10)
|
$local_slope
[1] 1.088289
$test_statistic
[1] 0.9199858
$Fvalue
[1] 3.492828
$pvalue
[1] 0.4147432
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.