-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oddsratio v2.0
- Loading branch information
Showing
41 changed files
with
692 additions
and
1,322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,38 @@ | ||
language: r | ||
sudo: false | ||
dist: trusty | ||
cache: | ||
- packages | ||
- ccache | ||
latex: false | ||
# DO NOT CHANGE THE CODE BELOW | ||
before_install: | ||
- R -q -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")' | ||
- R -q -e 'if (!requireNamespace("curl", quietly = TRUE)) install.packages("curl")' | ||
- R -q -e 'remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install()' | ||
install: R -q -e 'tic::install()' | ||
after_install: R -q -e 'tic::after_install()' | ||
before_script: R -q -e 'tic::before_script()' | ||
script: R -q -e 'tic::script()' | ||
after_success: R -q -e 'tic::after_success()' | ||
after_failure: R -q -e 'tic::after_failure()' | ||
before_deploy: R -q -e 'tic::before_deploy()' | ||
deploy: | ||
provider: script | ||
script: R -q -e 'tic::deploy()' | ||
on: | ||
all_branches: true | ||
after_deploy: R -q -e 'tic::after_deploy()' | ||
after_script: R -q -e 'tic::after_script()' | ||
# DO NOT CHANGE THE CODE ABOVE | ||
|
||
|
||
# These steps apply to all matrix jobs unless defined differently in tic.R | ||
before_install: | ||
- R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install(); remotes::install_github("tidyverse/ggplot2")' | ||
# Custom parts: | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- env: NB='w/ lintr' | ||
- env: NB='w/ covr' | ||
include: | ||
- os: linux | ||
r: devel | ||
install: R -q -e 'tic::install()' | ||
after_install: R -q -e 'tic::after_install()' | ||
before_script: R -q -e 'tic::before_script()' | ||
script: R -q -e 'tic::script()' | ||
before_deploy: R -q -e 'tic::before_deploy()' | ||
deploy: | ||
provider: script | ||
script: R -q -e 'tic::deploy()' | ||
on: | ||
branch: master | ||
condition: | ||
- $TRAVIS_PULL_REQUEST = false | ||
- $TRAVIS_EVENT_TYPE != cron | ||
after_deploy: R -q -e 'tic::after_deploy()' | ||
- os: osx | ||
r: release | ||
install: R -q -e 'tic::install()' | ||
after_install: R -q -e 'tic::after_install()' | ||
before_script: R -q -e 'tic::before_script()' | ||
script: R -q -e 'tic::script()' | ||
- os: linux | ||
r: devel | ||
env: NB='w/ covr' | ||
- os: linux | ||
r: devel | ||
env: NB='w/ lintr' | ||
# Header | ||
language: r | ||
sudo: false | ||
dist: xenial | ||
cache: packages | ||
latex: true | ||
pandoc_version: 2.5 | ||
|
||
notifications: | ||
on_success: change # default: always | ||
on_failure: change # default: always | ||
email: false | ||
env: | ||
global: | ||
- _R_CHECK_FORCE_SUGGESTS_=false | ||
- MAKEFLAGS="-j 2" | ||
- BUILD_PKGDOWN=true | ||
- _R_CHECK_TESTS_NLINES_=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,52 @@ | ||
Package: oddsratio | ||
Version: 1.0.3 | ||
Date: 2018-07-15 | ||
Title: Odds Ratio Calculation for GAM(M)s & GLM(M)s | ||
Authors@R: c( | ||
person("Patrick", "Schratz", , | ||
email = "[email protected]", | ||
role = c("aut", "cre"), | ||
comment = c(ORCID = '0000-0003-0748-6624')) | ||
) | ||
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. | ||
Version: 2.0.0 | ||
Date: 2019-06-13 | ||
Authors@R: | ||
person(given = "Patrick", | ||
family = "Schratz", | ||
role = c("aut", "cre"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0003-0748-6624")) | ||
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. | ||
License: MIT + file LICENSE | ||
URL: https://github.com/pat-s/oddsratio | ||
BugReports: https://github.com/pat-s/oddsratio/issues | ||
Depends: R (>= 3.0.0) | ||
Imports: mgcv, | ||
MASS, | ||
stats, | ||
ggplot2 (>= 3.0.0), | ||
cowplot | ||
License: MIT + file LICENSE | ||
RoxygenNote: 6.0.1 | ||
Suggests: knitr, | ||
rmarkdown, | ||
grid, | ||
gtable, | ||
scales, | ||
testthat, | ||
pacman, | ||
gam | ||
LazyData: true | ||
Depends: | ||
R (>= 3.0.0) | ||
Imports: | ||
ggplot2 (>= 3.0.0), | ||
mgcv, | ||
stats, | ||
stringr, | ||
tibble | ||
Suggests: | ||
cowplot, | ||
gam, | ||
grid, | ||
gtable, | ||
knitr, | ||
MASS, | ||
rmarkdown, | ||
scales, | ||
testthat | ||
VignetteBuilder: | ||
knitr | ||
ByteCompile: true | ||
VignetteBuilder: knitr | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 6.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.