Package: nutrigon 0.1.0


Juliano Morimoto
nutrigon: Angular Separation Between Nutritional Optima
Fits response surfaces (ordinary least squares, generalized linear models with any family including quasi-families, or linear mixed-effects models) to trait data collected under the Geometric Framework for Nutrition and computes the angular separation (theta) between the nutritional optima of two traits, with percentile bootstrap confidence intervals that propagate surface-estimation uncertainty (case or stratified resampling; paired or unpaired). Provides a design-matched coverage check that simulates validation configurations on the user's own design and at the signal-to-noise ratio of the fitted surfaces, an equivalence test for alignment of optima, local Gaussian and mean curvature, and a surface-area ratio. Includes the Drosophila lifespan and fecundity dataset of Lee et al. (2008) "Lifespan and reproduction in Drosophila: new insights from nutritional geometry" <doi:10.1073/pnas.0710787105> as a worked example. The angular approach was introduced in Morimoto (2023) "Nutrigonometry I: using right-angle triangles to quantify nutritional trade-offs in performance landscapes" <doi:10.1086/723599>.
Authors:
nutrigon_0.1.0.tar.gz
nutrigon_0.1.0.zip(r-4.7-any)nutrigon_0.1.0.zip(r-4.6-any)nutrigon_0.1.0.zip(r-4.5-any)
nutrigon_0.1.0.tgz(r-4.6-any)nutrigon_0.1.0.tgz(r-4.5-any)
nutrigon_0.1.0.tar.gz(r-4.7-any)nutrigon_0.1.0.tar.gz(r-4.6-any)
nutrigon_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
nutrigon/json (API)
| # Install 'nutrigon' in R: |
| install.packages('nutrigon', repos = c('https://jmor2753.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jmor2753/nutrigon/issues
- lee_drosophila - Lee et al. (2008) Drosophila lifespan and fecundity data
- nutrigon_validation_grid - Pre-built generic validation grid
- zanco_survival - Zanco et al. (2025) Drosophila viability data
- zanco_tradeoff_matrix - Pre-computed pairwise angular trade-off matrix for the Zanco example
- zanco_wingsize - Zanco et al. (2025) Drosophila wing size data
Last updated from:bd9496233c. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 131 | ||
| source / vignettes | OK | 188 | ||
| linux-release | OK | 119 | ||
| macos-release | OK | 182 | ||
| macos-oldrel | OK | 237 | ||
| windows-devel | OK | 99 | ||
| windows-release | OK | 96 | ||
| windows-oldrel | OK | 68 | ||
| wasm-release | OK | 109 |
Exports:nutrigon_build_gridnutrigon_checknutrigon_coefsnutrigon_comparenutrigon_curvaturenutrigon_elongationnutrigon_equivalencenutrigon_fitnutrigon_gridnutrigon_hullnutrigon_matrixnutrigon_region_polygonnutrigon_snr
Dependencies:withr
Last update: 2026-10-23
Started: 2026-07-07
Last update: 2026-10-23
Started: 2026-07-07
