Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Citation, increment version #191

Merged
merged 8 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check_styler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_docu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install SSH Client
Expand All @@ -40,7 +40,7 @@ jobs:
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_docu_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install SSH Client
Expand All @@ -39,7 +39,7 @@ jobs:
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -28,7 +28,7 @@ jobs:
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
Expand All @@ -50,7 +50,7 @@ jobs:
run: |
R CMD build .

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: DoubleML-pkg
path: DoubleML_*.tar.gz
6 changes: 3 additions & 3 deletions .github/workflows/rcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -54,7 +54,7 @@ jobs:

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-${{ matrix.config.mlr3 }}-1-${{ hashFiles('.github/depends.Rds') }}
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:

- name: Upload check results
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-${{ matrix.config.mlr3 }}-results
path: check
Expand Down
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: DoubleML
Type: Package
Title: Double Machine Learning in R
Version: 0.5.0.9000
Version: 1.0.0
Authors@R: c(
person("Philipp", "Bach", email = "[email protected]", role=c("aut", "cre")),
person("Victor", "Chernozhukov", role="aut"),
Expand All @@ -16,7 +16,8 @@ Description: Implementation of the double/debiased machine learning framework of
these models by machine learning methods and computation of the Neyman
orthogonal score functions. 'DoubleML' is built on top of 'mlr3' and the
'mlr3' ecosystem. The object-oriented implementation of 'DoubleML' based on
the 'R6' package is very flexible.
the 'R6' package is very flexible. More information available in the
publication in the Journal of Statistical Software: <10.18637/jss.v108.i03>.
License: MIT + file LICENSE
URL: https://docs.doubleml.org/stable/index.html, https://github.com/DoubleML/doubleml-for-r/
BugReports: https://github.com/DoubleML/doubleml-for-r/issues
Expand All @@ -37,7 +38,7 @@ Imports:
mlr3learners (>= 0.3.0),
mlr3misc
Roxygen: list(markdown = TRUE, r6 = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Suggests:
knitr,
rmarkdown,
Expand Down
2 changes: 1 addition & 1 deletion DoubleML.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ LaTeX: pdfLaTeX
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --no-tests --run-donttest
PackageCheckArgs: --as-cran --no-tests --run-donttest
4 changes: 2 additions & 2 deletions R/datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fetch_401k = function(return_type = "DoubleMLData", polynomial_features = FALSE,
#' available at [https://academic.oup.com/ectj/article/21/1/C1/5056401#supplementary-data](https://academic.oup.com/ectj/article/21/1/C1/5056401#supplementary-data).
#'
#' The supplementary data of the study by Bilias (2000) is available at
#' [http://qed.econ.queensu.ca/jae/2000-v15.6/bilias/](http://qed.econ.queensu.ca/jae/2000-v15.6/bilias/).
#' [https://www.journaldata.zbw.eu/dataset/sequential-testing-of-duration-data-the-case-of-the-pennsylvania-reemployment-bonus-experiment](https://www.journaldata.zbw.eu/dataset/sequential-testing-of-duration-data-the-case-of-the-pennsylvania-reemployment-bonus-experiment).
#'
#'
#' @references Bilias Y. (2000), Sequential Testing of Duration Data:
Expand Down Expand Up @@ -386,7 +386,7 @@ make_plr_CCDDHNR2018 = function(n_obs = 500, dim_x = 20, alpha = 0.5,
#' @references Turrell, A. (2018), Econometrics in Python part I - Double
#' machine learning, Markov Wanderer: A blog on economics, science, coding and
#' data.
#' [http://aeturrell.com/2018/02/10/econometrics-in-python-partI-ML/](http://aeturrell.com/2018/02/10/econometrics-in-python-partI-ML/).
#' [https://aeturrell.com/blog/posts/econometrics-in-python-parti-ml/](https://aeturrell.com/blog/posts/econometrics-in-python-parti-ml/).
#'
#' @param n_obs (`integer(1)`) \cr
#' The number of observations to simulate.
Expand Down
4 changes: 2 additions & 2 deletions R/double_ml.R
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ DoubleML = R6Class("DoubleML",
if (joint == FALSE) {
a = (1 - level) / 2
a = c(a, 1 - a)
pct = format.perc(a, 3)
pct = format_perc(a, 3)
fac = qnorm(a)
ci = array(NA_real_,
dim = c(length(parm), 2L),
Expand All @@ -962,7 +962,7 @@ DoubleML = R6Class("DoubleML",

a = (1 - level)
ab = c(a / 2, 1 - a / 2)
pct = format.perc(ab, 3)
pct = format_perc(ab, 3)
ci = array(NA_real_,
dim = c(length(parm), 2L),
dimnames = list(parm, pct))
Expand Down
2 changes: 1 addition & 1 deletion R/double_ml_plr.R
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ DoubleMLPLR = R6Class("DoubleMLPLR",
#' in the [mlr3tuning](https://mlr3tuning.mlr-org.com/) package. For more
#' information on tuning in [mlr3](https://mlr3.mlr-org.com/), we refer to
#' the section on parameter tuning in the
#' [mlr3 book](https://mlr3book.mlr-org.com/optimization.html#tuning).
#' [mlr3 book](https://mlr3book.mlr-org.com/chapters/chapter4/hyperparameter_optimization.html).
#'
#' @param param_set (named `list()`) \cr
#' A named `list` with a parameter grid for each nuisance model/learner
Expand Down
4 changes: 2 additions & 2 deletions R/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ set_default_measure = function(measure_in = NA, task_type) {
}


format.perc = function(probs, digits) {
format_perc = function(probs, digits) {
paste(
format(100 * probs, trim = TRUE, scientific = FALSE, digits = digits),
"%")
Expand Down Expand Up @@ -425,7 +425,7 @@ check_smpl_split = function(smpl, n_obs, check_intersect = FALSE) {
assert_subset(test_ids, seq(n_obs))
})
if (check_intersect) {
for (i_fold in seq(length(length(smpl$train_ids))))
for (i_fold in seq_along(length(length(smpl$train_ids))))
{
assert_disjunct(smpl$train_ids[[i_fold]], smpl$test_ids[[i_fold]])
}
Expand Down
14 changes: 8 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ Bibtex-entry:
```
@misc{DoubleML2020,
title={{DoubleML} -- {A}n Object-Oriented Implementation of Double Machine Learning in {R}},
author={P. Bach and V. Chernozhukov and M. S. Kurz and M. Spindler},
year={2021},
eprint={2103.09603},
archivePrefix={arXiv},
primaryClass={stat.ML},
author={P. Bach and V. Chernozhukov and M. S. Kurz and M. Spindler and Sven Klaassen},
year={2024},
journal={Journal of Statistical Software},
volume={108},
number={3},
pages= {1-56},
doi={10.18637/jss.v108.i03},
note={arXiv:\href{https://arxiv.org/abs/2103.09603}{2103.09603} [stat.ML]}
}
```
Expand All @@ -117,7 +119,7 @@ Foundation) is acknowledged – Project Number 431701914.

## References

* Bach, P., Chernozhukov, V., Kurz, M. S., and Spindler, M. (2021), DoubleML - An Object-Oriented Implementation of Double Machine Learning in R, arXiv:[2103.09603](https://arxiv.org/abs/2103.09603).
* Bach, P., Chernozhukov, V., Kurz, M. S., Spindler, M. and Klaassen, S. (2024), DoubleML - An Object-Oriented Implementation of Double Machine Learning in R, Journal of Statistical Software, 108(3): 1-56, <doi:10.18637/jss.v108.i03>, arXiv:[2103.09603](https://arxiv.org/abs/2103.09603).

* Chernozhukov, V., Chetverikov, D., Demirer, M., Duflo, E., Hansen, C., Newey, W. and Robins, J. (2018), Double/debiased machine learning for treatment and structural parameters. The Econometrics Journal, 21: C1-C68, <https://doi.org/10.1111/ectj.12097>.

Expand Down
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ It further can be readily extended with regards to
- … alternative resampling schemes,
- …

![OOP structure of the DoubleML package](man/figures/oop.svg?raw=true)
<figure>
<img src="man/figures/oop.svg?raw=true"
alt="OOP structure of the DoubleML package" />
<figcaption aria-hidden="true">OOP structure of the DoubleML
package</figcaption>
</figure>

## Installation

Expand Down Expand Up @@ -122,11 +127,13 @@ Bibtex-entry:

@misc{DoubleML2020,
title={{DoubleML} -- {A}n Object-Oriented Implementation of Double Machine Learning in {R}},
author={P. Bach and V. Chernozhukov and M. S. Kurz and M. Spindler},
year={2021},
eprint={2103.09603},
archivePrefix={arXiv},
primaryClass={stat.ML},
author={P. Bach and V. Chernozhukov and M. S. Kurz and M. Spindler and Sven Klaassen},
year={2024},
journal={Journal of Statistical Software},
volume={108},
number={3},
pages= {1-56},
doi={10.18637/jss.v108.i03},
note={arXiv:\href{https://arxiv.org/abs/2103.09603}{2103.09603} [stat.ML]}
}

Expand All @@ -137,9 +144,11 @@ Foundation) is acknowledged – Project Number 431701914.

## References

- Bach, P., Chernozhukov, V., Kurz, M. S., and Spindler, M. (2021),
DoubleML - An Object-Oriented Implementation of Double Machine
Learning in R, arXiv:[2103.09603](https://arxiv.org/abs/2103.09603).
- Bach, P., Chernozhukov, V., Kurz, M. S., Spindler, M. and Klaassen, S.
(2024), DoubleML - An Object-Oriented Implementation of Double Machine
Learning in R, Journal of Statistical Software, 108(3): 1-56,
<doi:10.18637/jss.v108.i03>,
arXiv:[2103.09603](https://arxiv.org/abs/2103.09603).

- Chernozhukov, V., Chetverikov, D., Demirer, M., Duflo, E., Hansen, C.,
Newey, W. and Robins, J. (2018), Double/debiased machine learning for
Expand Down
42 changes: 25 additions & 17 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
bibentry(
bibtype = "misc",
key = "DoubleML2021",
title = "{DoubleML} -- {A}n Object-Oriented Implementation of Double Machine Learning in {R}",
author = c(
person(given = "P.", family = "Bach"),
person(given = "V.", family = "Chernozhukov"),
person(given = "M. S.", family = "Kurz"),
person(given = "M.", family = "Spindler")
),
year = 2021,
eprint = "2103.09603",
archivePrefix = "arXiv",
primaryClass = "stat.ML",
note= "arXiv:\\href{https://arxiv.org/abs/2103.09603}{2103.09603} [stat.ML]",
textVersion = "Bach, P., Chernozhukov, V., Kurz, M. S., and Spindler, M. (2021), DoubleML - An Object-Oriented Implementation of Double Machine Learning in R, arXiv:2103.09603."
)
bibentry(bibtype = "Article",
title = "{DoubleML}: An Object-Oriented Implementation of Double Machine Learning in {R}",
author = c(person(given = "Philipp",
family = "Bach",
email = "[email protected]"),
person(given = c("Malte", "S."),
family = "Kurz",
email = "[email protected]"),
person(given = "Victor",
family = "Chernozhukov",
email = "[email protected]"),
person(given = "Martin",
family = "Spindler",
email = "[email protected]"),
person(given = "Sven",
family = "Klaassen",
email = "[email protected]")),
journal = "Journal of Statistical Software",
year = "2024",
volume = "108",
number = "3",
pages = "1--56",
doi = "10.18637/jss.v108.i03",
header = "To cite DoubleML in publications use:"
)
4 changes: 2 additions & 2 deletions man/DoubleMLIIVM.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/DoubleMLIRM.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/DoubleMLPLIV.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/DoubleMLPLR.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/fetch_bonus.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/make_plr_turrell2018.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading