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

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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("oddsratio")

2.0.2 by Patrick Schratz, a year ago


https://github.com/pat-s/oddsratio


Report a bug at https://github.com/pat-s/oddsratio/issues


Browse source code at https://github.com/cran/oddsratio


Authors: Patrick Schratz [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ggplot2, mgcv, stats

Suggests gam, knitr, MASS, rmarkdown, testthat


Imported by RQdeltaCT.


See at CRAN