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.

Documentation

Manual: oddsratio.pdf
Vignette: function.tutorial

Maintainer: Patrick Schratz <patrick.schratz at gmail.com>

Author(s): Patrick Schratz

Install package and any missing dependencies by running this line in your R console:

install.packages("oddsratio")

Depends R (>= 3.0.0)
Imports mgcv, MASS, stats, ggplot2(>=2.2.0), cowplot
Suggests knitr, rmarkdown, nlme, grid, gtable, scales, testthat, packagedocs
Enhances
Linking to
Reverse
depends
Reverse
imports
Reverse
suggests
Reverse
enhances
Reverse
linking to

Package oddsratio
Materials
URL https://github.com/pat-s/oddsratio
Task Views
Version 0.3.1
Published 2016-11-13
License MIT + file LICENSE
BugReports https://github.com/pat-s/oddsratio/issues
SystemRequirements
NeedsCompilation no
Citation
CRAN checks oddsratio check results
Package source oddsratio_0.3.1.tar.gz