Skip to content

oddsratio

2.0.2Package record

Odds Ratio Calculation for GAM(M)s & GLM(M)s

1packages depend
8.1Kdownloads / year
65.2%test coverage
13/13flavors OK

Overview

About

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.

Changes in 2.0.2

Chore

  • Account for mixed predictor specifications.
  • Upkeep maintenance.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.0.2
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 2.0.2Citation fileYes · software entry only
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

8.1K
CRAN downloads in the past year
Rank #4,447 · ~22/day · ~673/mo
Daily download trend is not available in this view yet.
80430 days
1.9K90 days
8.1K1 year
Compare downloads with other packages →
Also on75 r2u3 autocran

Repository

pat-s/oddsratio ↗Account: pat-sArchived
30Stars
2Forks
2Open issues
1Open PRs
11Releases
454Commits
3Commit identities
statisticsodds-ratioprobability
454 commits · Last activity 2025-10-17 · Default branch at 2.0.2.9000, ahead of CRAN 2.0.2 (checked 2026-10-21)
Responsiveness
How these are sampled
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

2024-01-24 · 302026-07-07 · 30
PracticesBeta

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.

Continuous integration (4)
GitHub ActionsR CMD check workflowTravis CI (config file)tic

The R CMD check workflow runs on Linux

Governance and community (2)

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (2)
pkgdown

GitHub Pages site last deployed 2025-08-13

CRAN release process (1)
cran-comments.md
Show all practicesHide 4 practices
Research and citation (1)
codemeta.json
Automation and maintenance (1)
pre-commit
Lint, format, editor (2)
lintrRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.0.0
Imports (3)
ggplot2mgcvstats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer since 0.2 (2016)
Releases (9)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.2Latest
    record
    2025-04-09 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 2.0.1
    record
    2020-05-25 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.0.0
    record
    2019-06-13 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.0.3
    record
    2018-07-25 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.2
    record
    2017-12-07 · diff ↗
  • 1.0.0
    record
    2017-06-13 · diff ↗ ·
    removed 6 exports
    add.oddsratio.into.plot, calc.oddsratio.gam, calc.oddsratio.glm, gam.to.df, no.plot, pl.smooth.gam
    added 6 exports
    gam_to_df, insert_or, no_plot, or_gam, or_glm, plot_gam
  • R
    R 3.4.0 released · 2017-04-21
Show 4 earlier eventsHide 4 earlier events
  • 0.3.1
    record
    2016-11-13 · diff ↗
  • 0.3.0
    record
    2016-10-27 · diff ↗ ·
    added 4 exports
    add.oddsratio.into.plot, gam.to.df, no.plot, pl.smooth.gam
  • 0.2
    record
    2016-10-12
  • R
    R 3.3.0 released · 2016-05-03

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for oddsratio version 2.0.2 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy