From f156137afbfaf49833a43876d077f000da4ed398 Mon Sep 17 00:00:00 2001 From: Nima Hejazi Date: Sat, 13 Mar 2021 14:45:48 -0800 Subject: [PATCH 1/4] bump version; add DOI; fix txshift dep --- DESCRIPTION | 24 ++++++++++----------- README.Rmd | 19 ++++++++++++++++ inst/CITATION | 2 +- man/LF_shift.Rd | 4 +++- man/Param_MSM_linear.Rd | 4 +++- tests/testthat/test-shift_additive_simple.R | 4 ++-- 6 files changed, 39 insertions(+), 18 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ab64d24..54a8c36 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: tmle3shift Title: Targeted Learning of the Causal Effects of Stochastic Interventions -Version: 0.1.9 +Version: 0.2.0 Authors@R: c( person("Nima", "Hejazi", email = "nh@nimahejazi.org", role = c("aut", "cre", "cph"), @@ -18,10 +18,10 @@ Description: Targeted maximum likelihood estimation (TMLE) of population-level variable importance analyses. Tools are provided for TML estimation of the counterfactual mean under a stochastic intervention characterized as a modified treatment policy, such as treatment policies that shift the natural - value of the exposure. The methodology implemented was first - described by I. Díaz and M.J. van der Laan (2013; - ) and expanded upon in I. Díaz and - M.J. van der Laan (2018). + value of the exposure. The causal parameter and estimation were described in + Díaz and van der Laan (2013) and an + improved estimation approach was given by Díaz and van der Laan (2018) + . Depends: R (>= 3.4.0) License: GPL-3 @@ -31,7 +31,7 @@ Imports: methods, data.table, assertthat, - tmle3 + tmle3 (>= 0.2.0) Suggests: testthat, knitr, @@ -39,24 +39,22 @@ Suggests: covr, stats, ggplot2, - sl3 (>= 1.3.7), - txshift (>= 0.3.1), + sl3 (>= 1.4.2), + txshift (>= 0.3.5), haldensify (>= 0.0.5), hal9001, xgboost, ranger, Rsolnp, - nnls, + nnls Remotes: github::tlverse/sl3, - github::tlverse/tmle3@devel, - github::nhejazi/haldensify, - github::nhejazi/txshift + github::tlverse/tmle3 URL: https://tlverse.org/tmle3shift BugReports: https://github.com/tlverse/tmle3shift/issues Encoding: UTF-8 LazyData: true LazyLoad: yes VignetteBuilder: knitr -RoxygenNote: 7.0.2 +RoxygenNote: 7.1.1 Roxygen: list(markdown = TRUE, r6 = FALSE) diff --git a/README.Rmd b/README.Rmd index f6c7eb0..d947620 100644 --- a/README.Rmd +++ b/README.Rmd @@ -21,6 +21,7 @@ knitr::opts_chunk$set( [![Coverage Status](https://img.shields.io/codecov/c/github/tlverse/tmle3shift/master.svg)](https://codecov.io/github/tlverse/tmle3shift?branch=master) [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4603372.svg)](https://doi.org/10.5281/zenodo.4603372) > Targeted Learning of the Causal Effects of Stochastic Interventions @@ -75,6 +76,24 @@ issue](https://github.com/tlverse/tmle3shift/issues). --- +## Citation + +After using the `tmle3shift` R package, please cite the following: + + @software{hejazi2021tmle3shift-rpkg, + author = {Hejazi, Nima S and Coyle, Jeremy R and {van der Laan}, Mark + J}, + title = {{tmle3shift}: {Targeted Learning} of the Causal Effects of + Stochastic Interventions}, + year = {2021}, + howpublished = {\url{https://github.com/tlverse/tmle3shift}}, + note = {{R} package version 0.2.0}, + url = {https://doi.org/10.5281/zenodo.4603372}, + doi = {10.5281/zenodo.4603372} + } + +--- + ## Related * [R/`txshift`](https://github.com/nhejazi/txshift) - An R package providing an diff --git a/inst/CITATION b/inst/CITATION index 5fdc3e8..aab5dff 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -12,5 +12,5 @@ bibentry(bibtype = "Manual", person("Mark", "van der Laan", "J")), year = year, note = note, - doi = "", + doi = "10.5281/zenodo.4603372", url = "https://github.com/tlverse/tmle3shift") diff --git a/man/LF_shift.Rd b/man/LF_shift.Rd index 0c6ac54..31b39ec 100644 --- a/man/LF_shift.Rd +++ b/man/LF_shift.Rd @@ -3,7 +3,9 @@ \name{LF_shift} \alias{LF_shift} \title{Shifted Likelihood Factor} -\format{\code{\link{R6Class}} object.} +\format{ +\code{\link{R6Class}} object. +} \value{ \code{LF_base} object } diff --git a/man/Param_MSM_linear.Rd b/man/Param_MSM_linear.Rd index d42fbdd..9cc99c3 100644 --- a/man/Param_MSM_linear.Rd +++ b/man/Param_MSM_linear.Rd @@ -3,7 +3,9 @@ \name{Param_MSM_linear} \alias{Param_MSM_linear} \title{Parameter for Linear Working Marginal Structural Model} -\format{\code{\link{R6Class}} object.} +\format{ +\code{\link{R6Class}} object. +} \value{ \code{Param_base} object } diff --git a/tests/testthat/test-shift_additive_simple.R b/tests/testthat/test-shift_additive_simple.R index f3c5e33..ca3e2f3 100644 --- a/tests/testthat/test-shift_additive_simple.R +++ b/tests/testthat/test-shift_additive_simple.R @@ -87,9 +87,9 @@ txshift_sl_tmle <- txshift( W = W, A = A, Y = Y, delta = delta_value, fluctuation = "standard", - g_fit_args = list( + g_exp_fit_args = list( fit_type = "sl", - sl_learners = g_learner + sl_learners_density = g_learner ), Q_fit_args = list( fit_type = "sl", From fd80fb266dc5c50d0f5de12291c17f5d855325bb Mon Sep 17 00:00:00 2001 From: Nima Hejazi Date: Sat, 13 Mar 2021 14:48:37 -0800 Subject: [PATCH 2/4] update CI deps + rebuild pkgdown --- .travis.yml | 2 +- README.md | 38 +- appveyor.yml | 5 +- docs/404.html | 34 +- docs/LICENSE-text.html | 34 +- docs/articles/index.html | 38 +- docs/articles/shift_tmle.html | 246 +++++--- docs/articles/vimshift.html | 586 +++++++++++++----- docs/authors.html | 45 +- docs/bootstrap-toc.css | 60 ++ docs/bootstrap-toc.js | 159 +++++ docs/index.html | 87 +-- docs/news/index.html | 77 ++- docs/pkgdown.css | 125 +++- docs/pkgdown.js | 5 - docs/pkgdown.yml | 5 +- docs/reference/LF_shift.html | 51 +- docs/reference/Param_MSM_linear.html | 48 +- docs/reference/additive_shifting.html | 50 +- docs/reference/additive_shifting_bounded.html | 86 +-- docs/reference/index.html | 42 +- docs/reference/msm_linear_factory.html | 43 +- docs/reference/tmle3_Spec_shift.html | 40 +- docs/reference/tmle3_Spec_vimshift_delta.html | 40 +- docs/reference/tmle3_Spec_vimshift_msm.html | 40 +- docs/reference/tmle_shift.html | 55 +- docs/reference/tmle_vimshift_delta.html | 57 +- docs/reference/tmle_vimshift_msm.html | 57 +- docs/reference/trend_msm.html | 53 +- 29 files changed, 1472 insertions(+), 736 deletions(-) create mode 100644 docs/bootstrap-toc.css create mode 100644 docs/bootstrap-toc.js diff --git a/.travis.yml b/.travis.yml index 92359f6..1bcef69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,13 +30,13 @@ r_packages: - delayed - origami - hal9001 + - haldensify r_github_packages: - r-lib/covr - r-lib/sessioninfo - tlverse/sl3 - tlverse/tmle3 - - nhejazi/haldensify - nhejazi/txshift after_success: diff --git a/README.md b/README.md index 8f2fa8e..4e60441 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4603372.svg)](https://doi.org/10.5281/zenodo.4603372) > Targeted Learning of the Causal Effects of Stochastic Interventions @@ -34,11 +35,12 @@ builds upon the core `tlverse` grammar introduced by `tmle3`, a general framework that supports the implementation of a range of TMLE parameters through a unified interface. For a detailed description of the target parameter, TML estimator, and algorithm implemented in `tmle3shift`, the -interested reader is invited to consult Díaz and van der Laan (2012) and -Díaz and van der Laan (2018). For a general discussion of the framework -of targeted minimum loss-based estimation and the role this methodology -plays in statistical and causal inference, the canonical references are -van der Laan and Rose (2011) and van der Laan and Rose (2018). +interested reader is invited to consult Dı́az and van der Laan (2012) +and Dı́az and van der Laan (2018). For a general discussion of the +framework of targeted minimum loss-based estimation and the role this +methodology plays in statistical and causal inference, the canonical +references are van der Laan and Rose (2011) and van der Laan and Rose +(2018). Building on the original work surrounding the TML estimator for the aforementioned target parameter, `tmle3shift` additionally implements a @@ -70,6 +72,26 @@ If you encounter any bugs or have any specific feature requests, please ----- +## Citation + +After using the `tmle3shift` R package, please cite the following: + +``` + @software{hejazi2021tmle3shift-rpkg, + author = {Hejazi, Nima S and Coyle, Jeremy R and {van der Laan}, Mark + J}, + title = {{tmle3shift}: {Targeted Learning} of the Causal Effects of + Stochastic Interventions}, + year = {2021}, + howpublished = {\url{https://github.com/tlverse/tmle3shift}}, + note = {{R} package version 0.2.0}, + url = {https://doi.org/10.5281/zenodo.4603372}, + doi = {10.5281/zenodo.4603372} + } +``` + +----- + ## Related - [R/`txshift`](https://github.com/nhejazi/txshift) - An R package @@ -100,9 +122,9 @@ See file `LICENSE` for details.
-Díaz, Iván, and Mark J van der Laan. 2012. “Population Intervention -Causal Effects Based on Stochastic Interventions.” *Biometrics* 68 (2). -Wiley Online Library: 541–49. +Dı́az, Iván, and Mark J van der Laan. 2012. “Population Intervention +Causal Effects Based on Stochastic Interventions.” *Biometrics* 68 (2): +541–49.
diff --git a/appveyor.yml b/appveyor.yml index f559c53..0029570 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,9 +36,8 @@ build_script: - echo Current directory=%CD% - travis-tool.sh install_r base64 - travis-tool.sh install_github r-lib/sessioninfo r-lib/covr - - travis-tool.sh install_github tlverse/delayed tlverse/origami - - travis-tool.sh install_github tlverse/hal9001 tlverse/sl3 tlverse/tmle3 - - travis-tool.sh install_github nhejazi/haldensify nhejazi/txshift + - travis-tool.sh install_github tlverse/sl3 tlverse/tmle3 + - travis-tool.sh install_github nhejazi/txshift - travis-tool.sh install_deps test_script: diff --git a/docs/404.html b/docs/404.html index 4ddf723..407e0c5 100644 --- a/docs/404.html +++ b/docs/404.html @@ -10,23 +10,27 @@ - + - + - + + + + + - - + + - + - - + + @@ -63,7 +67,7 @@ - +
@@ -102,7 +106,7 @@
+ + @@ -136,7 +146,7 @@

Page not found (404)

-

Site built with pkgdown 1.4.1.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 3899ab8..1219c0d 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -10,23 +10,27 @@ - + - + - + + + + + - - + + - + - - + + @@ -63,7 +67,7 @@ - +
@@ -102,7 +106,7 @@
+ + @@ -810,7 +820,7 @@

License

-

Site built with pkgdown 1.4.1.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/articles/index.html b/docs/articles/index.html index 98a058e..8459266 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -10,23 +10,27 @@ - + - + - + + + + + - - + + - + - - + + @@ -63,7 +67,7 @@ - +
@@ -102,7 +106,7 @@
@@ -141,7 +147,7 @@

All vignettes

-

Site built with pkgdown 1.4.1.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/articles/shift_tmle.html b/docs/articles/shift_tmle.html index e82dece..a7b3935 100644 --- a/docs/articles/shift_tmle.html +++ b/docs/articles/shift_tmle.html @@ -6,13 +6,13 @@ Targeted Learning with Stochastic Treatment Regimes • tmle3shift - - - - + + + + + - - + - - - + + + + + - - + - + - + - + + + + + - - + + - + - - + + @@ -63,7 +67,7 @@ - +
@@ -102,7 +106,7 @@