| p_adjust | R Documentation |
Identical to stats::p.adjust, but includes method = "oleson"
p_adjust(p, method = "oleson", n = length(p), alpha = 0.05, df, rho, cores = 0)
p |
numeric vector of p-values (possibly with NAs). |
method |
correction method, a character string. Can be any of the methods in
p.adjust.methods, with the additional value |
n |
number of comparisons, must be at least |
alpha |
adjustment to be made with method oleson |
df |
degrees of freedom, if using |
rho |
AR1 correlation coefficient, if using |
cores |
number of cores for use in parallel, only valid for
|
This function works identically to the function p.adjust, with
the additional option to use method = "oleson". For this option, user
must include a value for df, alpha. If method = "oleson" and
no value is given for rho, 0.9 will be used. To compute a value for rho
from t-statistics, use ar1Solver.
Returns a vector of adjusted p-values just as in p.adjust, but
with additional attributes for alphastar and rho.
ar1Solver
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.