# 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.

# oddsratio 1.0.0 (June 12 2017)

## Major

• rename functions (snake_case)

# oddsratio 0.3.1 (Nov 9 2016)

• update functions to work with ggplot2 v2.2

# oddsratio 0.3.0 (Oct 27 2016)

#### New functions

• `plot_smooth.gam()`: Lets you plot smoothing functions of GAM(M)s using `ggplot2`.
• `add.oddsratio.into.plot()`: Add odds ratios into plot of GAM(M) smoothing function.

• `calc.oddsratio.glm`, `calc.oddsratio.gam`: Add odds ratio confident interval calculation
• For GLM models CI level can be specified manually.
• Print 'CI' warning if model is of type `glmmPQL`

# oddsratio 0.2.0 (Oct 12 2016)

• Remove param `quietly`
• return data.frame in any case
• update DESCRIPTION

# oddsratio 0.1.0 (Oct 11 2016)

• Initial release attempt to CRAN

# Reference manual

install.packages("oddsratio")

1.0.2 by Patrick Schratz, 3 months 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] (0000-0003-0748-6624)

Documentation:   PDF Manual