Learn R Programming

oddsratio (version 2.0.1)

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

Description

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.

Copy Link

Version

Install

install.packages('oddsratio')

Monthly Downloads

897

Version

2.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 24th, 2020

Functions in oddsratio (2.0.1)

plot_gam

Plot GAM(M) Smoothing Function
insert_or

Insert odds ratios of GAM(M)s into smoothing function
or_gam

Calculate Odds Ratios of Generalized Additive (Mixed) Models
data_glm

data_glm
or_glm

Calculate Odds Ratios of Generalized Linear (Mixed) Models
gam_to_df

Converts a fitted GAM model into a tidy data frame
no_plot

data_gam

data_gam