Package: xactonomial 1.2.0
xactonomial: Inference for Functions of Multinomial Parameters
We consider the problem where we observe k vectors (possibly of different lengths), each representing an independent multinomial random vector. For a given function that takes in the concatenated vector of multinomial probabilities and outputs a real number, this is a Monte Carlo estimation procedure of an exact p-value and confidence interval. The resulting inference is valid even in small samples, when the parameter is on the boundary, and when the function is not differentiable at the parameter value, all situations where asymptotic methods and the bootstrap would fail. For more details see Sachs, Fay, and Gabriel (2025) <doi:10.48550/arXiv.2406.19141>.
Authors:
xactonomial_1.2.0.tar.gz
xactonomial_1.2.0.zip(r-4.7)xactonomial_1.2.0.zip(r-4.6)xactonomial_1.2.0.zip(r-4.5)
xactonomial_1.2.0.tgz(r-4.6-x86_64)xactonomial_1.2.0.tgz(r-4.6-arm64)xactonomial_1.2.0.tgz(r-4.5-x86_64)xactonomial_1.2.0.tgz(r-4.5-arm64)
xactonomial_1.2.0.tar.gz(r-4.7-arm64)xactonomial_1.2.0.tar.gz(r-4.7-x86_64)xactonomial_1.2.0.tar.gz(r-4.6-arm64)xactonomial_1.2.0.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html✨
card.svg |card.png
xactonomial/json (API)
NEWS
| # Install 'xactonomial' in R: |
| install.packages('xactonomial', repos = c('https://sachsmc.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sachsmc/xactonomial/issues
Pkgdown/docs site:https://sachsmc.github.io
Last updated from:25095ba91e. Checks:8 OK, 4 NOTE, 1 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 156 | ||
| linux-devel-x86_64 | OK | 179 | ||
| source / vignettes | OK | 225 | ||
| linux-release-arm64 | OK | 150 | ||
| linux-release-x86_64 | OK | 143 | ||
| macos-release-arm64 | NOTE | 95 | ||
| macos-release-x86_64 | NOTE | 244 | ||
| macos-oldrel-arm64 | OK | 87 | ||
| macos-oldrel-x86_64 | OK | 396 | ||
| windows-devel | NOTE | 235 | ||
| windows-release | NOTE | 177 | ||
| windows-oldrel | OK | 156 | ||
| wasm-release | FAIL | 116 |
Exports:calc_multinom_probscalc_prob_nullcalc_prob_null_fastcalc_prob_null_gradientcombinatecombinate2itp_rootlog_multinom_coefpvalue_psi0rdirich_dk_vectsrunif_dk_vectssample_unit_simplexnsspace_multinomsspace_multinom_slowxactonomial
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Calculate multinomial probabilities | calc_multinom_probs |
| Calculate probability for given parameters | calc_prob_null |
| Calculate probability for given parameters | calc_prob_null_fast |
| Gradient of the multinomial likelihood sum | calc_prob_null_gradient |
| Arrange all combinations of rows of two matrices | combinate |
| Like combinate but adds on to previous call | combinate2 |
| Find a univariate root of the function f | itp_root |
| Calculate log of multinomial coefficient | log_multinom_coef |
| Compute a p value for the test of psi <= psi0 and/or psi >= psi0 | pvalue_psi0 |
| Sample independently from Dirichlet distributions for each of d_k vectors | rdirich_dk_vects |
| Sample uniformly and independently from d_k simplices | runif_dk_vects |
| Sample n times from the unit simplex in d dimensions | sample_unit_simplexn |
| Enumerate the multinomial sample space | sspace_multinom |
| Enumerate the sample space of a multinomial | sspace_multinom_slow |
| Improved inference for a real-valued function of multinomial parameters | xactonomial |
