Package: nutrigon
Title: Angular Separation Between Nutritional Optima
Version: 0.1.0
Authors@R: person("Juliano", "Morimoto", email = "juliano.morimoto@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-3561-1920"))
Description: 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>.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.2
Depends: R (>= 4.1)
Imports: stats, grDevices, withr
Suggests: ggplot2, ggdendro, ggrepel, patchwork, knitr, rmarkdown,
        testthat (>= 3.0.0), lme4, lmerTest, pracma
VignetteBuilder: knitr
Config/testthat/edition: 3
URL: https://github.com/jmor2753/nutrigon
BugReports: https://github.com/jmor2753/nutrigon/issues
NeedsCompilation: no
Packaged: 2026-10-23 12:50:46 UTC; julianomorimoto
Author: Juliano Morimoto [aut, cre] (ORCID:
    <https://orcid.org/0000-0003-3561-1920>)
Maintainer: Juliano Morimoto <juliano.morimoto@gmail.com>
Repository: CRAN
Date/Publication: 2026-11-07 14:40:08 UTC
Built: R 4.5.2; ; 2026-11-07 17:20:19 UTC; unix
