Odds Ratio Calculation for GAM(M)s & GLM(M)s
Overview
Simplified odds ratio calculation of GAM(M)s & GLM(M)s. Provides structured output (data frame) of all predictors and their corresponding odds ratios and confident intervals for further analyses. It helps to avoid false references of predictors and increments by specifying these parameters in a list instead of using 'exp(coef(model))' (standard approach of odds ratio calculation for GLMs) which just returns a plain numeric output. For GAM(M)s, odds ratio calculation is highly simplified with this package since it takes care of the multiple 'predict()' calls of the chosen predictor while holding other predictors constant. Also, this package allows odds ratio calculation of percentage steps across the whole predictor distribution range for GAM(M)s. In both cases, confident intervals are returned additionally. Calculated odds ratio of GAM(M)s can be inserted into the smooth function plot.
Chore
- Account for mixed predictor specifications.
- Upkeep maintenance.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 8 (4 internal)
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 85%
- Return-value docs
- 50%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 98%
- Median days to close, 50 most recently updated closed issues
- 321
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
14 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/pat-s/oddsratio on 2026-10-21.
The R CMD check workflow runs on Linux
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
Show all practicesHide 4 practices
Dependencies
Installing oddsratio adds 17 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.0.2Latest
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 2.0.12020-05-25 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 2.0.02019-06-13 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.0.32018-07-25 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.0.22017-12-07 · diff ↗
- 1.0.02017-06-13 · diff ↗ ·
removed 6 exports
add.oddsratio.into.plot, calc.oddsratio.gam, calc.oddsratio.glm, gam.to.df, no.plot, pl.smooth.gamadded 6 exports
gam_to_df, insert_or, no_plot, or_gam, or_glm, plot_gam - RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2016-10-12
- Total releases
- 9 / 10 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.0.0
- Bundled data
- 14 KB / 2 files
- Download size
- 246 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("oddsratio")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.5281/zenodo.1095472.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.