Skip to content

oddsratio

2.0.2

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

1packages depend
10.3Kdownloads / year
65.2%test coverage
13/13checks pass

Overview

About
Maintained by Patrick SchratzFirst published 2016-10-129 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.1 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.15
65.2%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
85%
Return-value docs
50%
References docs
0%

Downloads

10.3K
CRAN downloads in the past year
Rank #4,637 · ~28/day · ~861/mo
Daily download trend is not available in this view yet.
63130 days
2K90 days
10.3K1 year
Compare downloads with other packages →
Also on103 r2u30 autocran

Repository

Repository
30Stars
2Forks
2Open issues
1Open PRs
11Releases
454Commits
3Contributors
statisticsodds-ratioprobability
454 commits · Last activity 2025-10-17

Stars over time

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

Repository practices

Upstream repositoryBeta

9 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/pat-s/oddsratio on 2026-07-19.

Continuous integration (3)
GitHub ActionsTravis CItic
CRAN release process (1)
cran-comments.md
Research and citation (1)
codemeta.json
Automation and maintenance (1)
pre-commit
Show all practices
Lint, format, editor (2)
lintrRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.0.0
Imports (3)
ggplot2mgcvstats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

9 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.2Latest
    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
    2020-05-25 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.0.0
    2019-06-13 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.0.3
    2018-07-25 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.2
    2017-12-07 · diff ↗
  • 1.0.0
    2017-06-13 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
Show 4 earlier events
  • 0.3.1
    2016-11-13 · diff ↗
  • 0.3.0
    2016-10-27 · diff ↗
  • 0.2
    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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →