oddsratio: 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.

Install the latest version of this package by entering the following in R:
install.packages("oddsratio")
AuthorPatrick Schratz
Date of publication2016-11-13 01:41:47
MaintainerPatrick Schratz <patrick.schratz@gmail.com>
LicenseMIT + file LICENSE
Version0.3.1
https://github.com/pat-s/oddsratio

View on CRAN

Files

inst
inst/wordpress.Rmd
inst/wordpress_files
inst/wordpress_files/figure-markdown_strict
inst/wordpress_files/figure-markdown_strict/unnamed-chunk-6-1.png
inst/wordpress_files/figure-markdown_strict/unnamed-chunk-7-1.png
inst/wordpress_files/figure-markdown_strict/unnamed-chunk-8-1.png
inst/wordpress.md
inst/doc
inst/doc/function.tutorial.Rmd
inst/doc/function.tutorial.R
inst/doc/function.tutorial.html
inst/Plots
inst/Plots/smoothing_funtion.png
inst/Plots/smoothing_function_oddsratio.png
inst/Plots/smoothing_function_oddsratio_two.png
tests
tests/testthat.R
tests/testthat
tests/testthat/test-add-oddsratio-into-plot.R tests/testthat/test-calc-oddsratio-glm.R
NAMESPACE
NEWS
NEWS.md
data
data/data.gam.rda
data/data.glm.rda
R
R/pl.smooth.gam.R R/calc.oddsratio.gam.R R/helper.funs.R R/data.R R/add.oddsratio.into.plot.R R/calc.oddsratio.glm.R
vignettes
vignettes/function.tutorial.Rmd
MD5
build
build/vignette.rds
DESCRIPTION
man
man/no.plot.Rd man/pl.smooth.gam.Rd man/add.oddsratio.into.plot.Rd man/calc.oddsratio.glm.Rd man/calc.oddsratio.gam.Rd man/gam.to.df.Rd man/data.glm.Rd man/data.gam.Rd
LICENSE

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.