View source: R/pairwisePercentileTest.r
pairwisePercentileTest | R Documentation |
Conducts pairwise permutation tests across groups for percentiles, medians, and proportion below a threshold value.
pairwisePercentileTest(
formula = NULL,
data = NULL,
x = NULL,
y = NULL,
test = "median",
tau = 0.5,
type = 7,
threshold = NA,
comparison = "<",
r = 1000,
digits = 4,
progress = "TRUE",
method = "fdr"
)
formula |
A formula indicating the response variable and the independent variable. e.g. y ~ group. |
data |
The data frame to use. |
x |
If no formula is given, the response variable for one group. |
y |
The response variable for the other group. |
test |
The statistic to compare between groups. Can be
|
tau |
If |
type |
The |
threshold |
If |
comparison |
If |
r |
The number of replicates in the permutation test. |
digits |
The number of significant digits in the output. |
progress |
If |
method |
The p-value adjustment method to use for multiple tests.
See |
The function conducts pairwise tests using the
percentileTest
function. The user can consult the
documentation for that function for additional details.
The input should include either formula
and data
;
or x
, and y
.
A dataframe of the groups being compared, the p-values, and the adjusted p-values.
The parsing of the formula is simplistic. The first variable on the left side is used as the measurement variable. The first variable on the right side is used for the grouping variable.
Salvatore Mangiafico, mangiafico@njaes.rutgers.edu
https://rcompanion.org/handbook/F_15.html
percentileTest
,
groupwisePercentile
## Not run:
data(BrendonSmall)
PT = pairwisePercentileTest(Sodium ~ Instructor,
data = BrendonSmall,
test = "percentile",
tau = 0.75)
PT
cldList(p.adjust ~ Comparison,
data = PT,
threshold = 0.05)
data(BrendonSmall)
PT = pairwisePercentileTest(Sodium ~ Instructor,
data = BrendonSmall,
test = "proportion",
threshold = 1300)
PT
cldList(p.adjust ~ Comparison,
data = PT,
threshold = 0.05)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.