| permcombine | R Documentation |
Nonparametric combination (NPC) of permutation tests made with the same permutations, for example the same model fitted to several responses (traits, time points) measured on the same units: for each term or coefficient, one p-value for the hypothesis that it has no effect on any of the responses, and p-values adjusted for testing it on every response.
permcombine(..., method = c("fisher", "tippett"), tests = NULL)
... |
Results of |
method |
How the p-values of the responses are combined: |
tests |
Names of the terms and coefficients ( |
Each response's statistic is turned into a p-value within each permuted data set (its rank among all the permutations, the observed data counted as one of them); the p-values of the responses are combined in every permuted data set, and the combined p-value is the proportion of permuted data sets whose combined statistic is at least the observed one (Pesarin and Salmaso 2010). Because the same permutation of the units is applied to every response, the correlation between the responses is kept and needs no model. Permuted data sets in which a refit failed for any response are left out.
Several tests within one family over time or over levels of a factor (a max-statistic test over time
points) are available from contrastmeans with adj = "westfall" and a permlist.
A data frame with one row per test: the permutation p-value of each response, the combined
p-value (combined), and the p-values adjusted for the number of responses (columns
adj.<response>): single-step min-p adjusted p-values (Westfall and Young 1993), which control the
familywise error rate over the responses and allow for their correlation.
Dongwen Luo, Siva Ganesh and John Koolaard
Pesarin, F. and Salmaso, L. (2010). Permutation Tests for Complex Data: Theory, Applications and Software. Wiley.
Westfall, P. H. and Young, S. S. (1993). Resampling-Based Multiple Testing. Wiley.
Winkler, A. M., Webster, M. A., Brooks, J. C., Tracey, I., Smith, S. M. and Nichols, T. E. (2016). Non-parametric combination and related permutation tests for neuroimaging. Human Brain Mapping, 37, 1486-1511.
permmodels, permstats
mtcars$cyl <- factor(mtcars$cyl)
p1 <- permmodels(lm(mpg ~ wt + cyl, data = mtcars), nperm = 999, type = "II", seed = 1)
p2 <- permmodels(lm(qsec ~ wt + cyl, data = mtcars), nperm = 999, type = "II", seed = 1)
permcombine(mpg = p1, qsec = p2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.