Package: exactcond 0.2.0
exactcond: Exact Conditional Reference Distributions for Tables and Selected Linear Models
Reference distributions that are exact at every sample size, obtained by conditioning on a statistic sufficient for the nuisance parameter rather than by appealing to an asymptotic approximation. Two forms of conditioning are supplied. For a two-way table the row and column totals are sufficient for the marginal parameters, so conditioning on both margins leaves the Fisher-Yates law, sampled here exactly by random permutation of the column labels; statistics include the linear-by-linear association of Goodman (1979) <doi:10.1080/01621459.1979.10481650> and, for nominal rows against an ordinal column, the dispersion of the row mean scores, whose components are the group contrasts themselves. A two-table form conditions further on the total score to cancel a common association parameter, giving a nuisance-free test that two tables share it. For a linear model under a null in which the tested structure is absent, a statistic invariant to the coefficients and the error scale depends on the data only through the residual direction, which is uniform on the sphere of the residual space; the reference stays exact when the statistic is maximised over candidate structures, and so remains valid after a spatial weight matrix has been chosen by fit. Permutation tests for a battery of categorical items and for differences between correlation networks follow the nonparametric combination of Pesarin and Salmaso (2010) <doi:10.1002/9780470689516>, with exchangeability blocks as in Winkler et al. (2014) <doi:10.1016/j.neuroimage.2014.01.060>. Every replicate draws from its own stream, so results do not depend on the thread count. The same C sources back the 'Python' package 'exactcond'.
Authors:
exactcond_0.2.0.tar.gz
exactcond_0.2.0.zip(r-4.7-x86_64)exactcond_0.2.0.zip(r-4.7-arm64)exactcond_0.2.0.zip(r-4.6-x86_64)exactcond_0.2.0.zip(r-4.6-arm64)exactcond_0.2.0.zip(r-4.5-x86_64)
exactcond_0.2.0.tgz(r-4.6-x86_64)exactcond_0.2.0.tgz(r-4.6-arm64)exactcond_0.2.0.tgz(r-4.5-x86_64)exactcond_0.2.0.tgz(r-4.5-arm64)
exactcond_0.2.0.tar.gz(r-4.7-arm64)exactcond_0.2.0.tar.gz(r-4.7-x86_64)exactcond_0.2.0.tar.gz(r-4.6-arm64)exactcond_0.2.0.tar.gz(r-4.6-x86_64)
exactcond_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
exactcond/json (API)
| # Install 'exactcond' in R: |
| install.packages('exactcond', repos = c('https://mtloots.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mtloots/exactcond/issues
Last updated from:4f13e1ad26. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 113 | ||
| linux-devel-x86_64 | OK | 105 | ||
| source / vignettes | OK | 206 | ||
| linux-release-arm64 | OK | 112 | ||
| linux-release-x86_64 | OK | 100 | ||
| macos-release-arm64 | OK | 165 | ||
| macos-release-x86_64 | OK | 309 | ||
| macos-oldrel-arm64 | OK | 106 | ||
| macos-oldrel-x86_64 | OK | 494 | ||
| windows-devel-arm64 | OK | 325 | ||
| windows-devel-x86_64 | OK | 108 | ||
| windows-release-arm64 | OK | 328 | ||
| windows-release-x86_64 | OK | 77 | ||
| windows-oldrel-x86_64 | OK | 75 | ||
| wasm-release | OK | 77 |
Exports:ec_diffnet_testec_multi_testec_pvalueec_rc_nullec_rc_testec_rc_twoec_scoresec_sphere_maxquad
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| A differential network without a Gaussian assumption | ec_diffnet_test |
| One exact test for a battery of items across groups | ec_multi_test |
| Tail probabilities from an observed value and a null sample | ec_pvalue |
| Null draws of a table statistic given both margins | ec_rc_null |
| Exact conditional test in a two-way table | ec_rc_test |
| Exact conditional test that two tables share an association parameter | ec_rc_two |
| Integer scores for an ordinal margin | ec_scores |
| Exact null for a statistic maximised over candidate structures | ec_sphere_maxquad |
