-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDESCRIPTION
More file actions
51 lines (51 loc) · 2.01 KB
/
Copy pathDESCRIPTION
File metadata and controls
51 lines (51 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Package: riskdiff
Title: Risk Difference Estimation with Multiple Link Functions and Inverse Probability of Treatment Weighting
Version: 0.3.0
Date: 2026-02-26
Authors@R:
person("John D.", "Murphy", , "jackdmurphy@protonmail.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-7714-9976", "MPH, PhD"))
Description: Calculates risk differences (or prevalence differences for
cross-sectional data) and Number Needed to Treat (NNT) using generalized
linear models with automatic link function selection. Provides robust
model fitting with fallback methods, support for stratification and
adjustment variables, inverse probability of treatment weighting (IPTW)
for causal inference with NNT calculations, and publication-ready output
formatting. Handles model convergence issues gracefully and provides
confidence intervals using multiple approaches.
Methods are based on approaches described in Mark W. Donoghoe and
Ian C. Marschner (2018) "logbin: An R Package for Relative Risk
Regression Using the Log-Binomial Model" <doi:10.18637/jss.v086.i09>
for robust GLM fitting, Peter C. Austin (2011) "An Introduction to
Propensity Score Methods for Reducing the Effects of Confounding in
Observational Studies" <doi:10.1080/00273171.2011.568786> for IPTW methods,
and standard epidemiological methods for risk difference estimation as
described in Kenneth J. Rothman, Sander Greenland and Timothy L. Lash
(2008, ISBN:9780781755641) "Modern Epidemiology".
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Depends:
R (>= 3.5.0)
Imports:
dplyr (>= 1.0.0),
purrr,
tibble,
rlang,
scales,
stringr,
stats,
ggplot2
Suggests:
kableExtra,
testthat (>= 3.0.0),
knitr,
rmarkdown,
covr,
mockery
Config/testthat/edition: 3
URL: https://github.com/jackmurphy2351/riskdiff
BugReports: https://github.com/jackmurphy2351/riskdiff/issues
LazyData: true
VignetteBuilder: knitr