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.
knitr, rmarkdown, nlme, grid, gtable, scales
'helper.funs.R' 'pl.smooth.gam.R' 'calc.oddsratio.gam.R'
'calc.oddsratio.glm.R' 'add.oddsratio.into.plot.R'

mgcv, MASS, stats, ggplot2 (>= 2.2.0), cowplot
knitr, rmarkdown, nlme, grid, gtable, scales, testthat,
packagedocs
'data.R' 'helper.funs.R' 'pl.smooth.gam.R'
'calc.oddsratio.gam.R' 'calc.oddsratio.glm.R'
'add.oddsratio.into.plot.R'

c(
person("Patrick", "Schratz", , "patrick.schratz@gmail.com", c("aut", "cre"))
)
knitr, rmarkdown, grid, gtable, scales, testthat, pacman, gam

c(
person("Patrick", "Schratz", ,
email = "patrick.schratz@gmail.com",
role = c("aut", "cre"),
comment = c(ORCID = '0000-0003-0748-6624'))
)

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.
mgcv, MASS, stats, ggplot2 (>= 3.0.0), cowplot
Patrick Schratz [aut, cre] (<https://orcid.org/0000-0003-0748-6624>)