| permstats | R Documentation |
Uses the permuted statistics kept by permmodels to give, for each term and coefficient, a
standardised effect size and a check of the usual parametric test against the permutation distribution.
permstats(x, conf_level = 0.95, ...)
x |
A result of |
conf_level |
The check of the parametric test is at the significance level |
... |
Not used: |
Every permuted data set comes from the model without the tested term (Freedman-Lane), so the permuted
statistics show how the statistic behaves when that term has no effect but everything else in the data is
kept. Comparing the parametric p-value with the permutation p-value, and param.size with
1 - conf_level, shows whether the usual test can be trusted for these data. For mixed models the
permuted statistics are Wald statistics (unadjusted covariance), so param.size checks the Wald F
with the given df, not the Kenward-Roger test.
A data frame with one row per term and coefficient (rows "coef:<name>"):
statistic |
the observed statistic: F for terms, |t| for coefficients (robust ones with
|
df1, df2 |
numerator and denominator df of the usual parametric test: the residual df for |
p.param |
the parametric p-value of the observed statistic with these df. |
p.perm |
the permutation p-value (as in the tables of |
ses |
the standardised effect size, (observed - mean of the permuted statistics) / their standard deviation (Gotelli and McCabe 2002): how far the observed statistic lies from what the permutations give when the effect is absent, in standard deviations. |
param.size |
the proportion of permuted data sets in which the parametric test rejects at
|
Dongwen Luo, Siva Ganesh and John Koolaard
Gotelli, N. J. and McCabe, D. J. (2002). Species co-occurrence: a meta-analysis of J. M. Diamond's assembly rules model. Ecology, 83, 2091-2096.
permmodels, permcombine
mtcars$cyl <- factor(mtcars$cyl)
fm <- lm(mpg ~ wt + cyl, data = mtcars)
pfl <- permmodels(fm, nperm = 999, type = "II", seed = 1)
permstats(pfl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.