Skip to content

Commit 36390c7

Browse files
Merge pull request #205 from DoubleML/dev
Update Documentation to 0.9.1
2 parents 49642a1 + fa8ccd9 commit 36390c7

20 files changed

+1855
-18
lines changed

.github/workflows/deploy_docu_dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111

12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
env:
1414
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1515

@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
4444
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
45-
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
45+
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/'
4646
- name: Install R
4747
run: |
4848
sudo apt-get update

.github/workflows/deploy_docu_stable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111

12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313

1414
steps:
1515
- name: Check out the repo containing the docu source
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
3333
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
34-
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
34+
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/'
3535
- name: Install R
3636
run: |
3737
sudo apt-get update

.github/workflows/test_build_docu_dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727
jobs:
2828
build:
2929

30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-22.04
3131
env:
3232
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3333

@@ -69,7 +69,7 @@ jobs:
6969
run: |
7070
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
7171
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
72-
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
72+
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/'
7373
- name: Install R
7474
run: |
7575
sudo apt-get update

.github/workflows/test_build_docu_released.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
jobs:
1919
build:
2020

21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
2222

2323
steps:
2424
- name: Check out the repo containing the docu source
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
4242
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
43-
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
43+
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/'
4444
- name: Install R
4545
run: |
4646
sudo apt-get update

doc/api/api.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ Double machine learning models
3838
DoubleMLCVAR
3939
DoubleMLQTE
4040

41+
Other models
42+
------------------------------
43+
.. currentmodule:: doubleml
44+
45+
.. autosummary::
46+
:toctree: generated/
47+
:template: class.rst
48+
49+
rdd.RDFlex
50+
4151
Datasets module
4252
---------------
4353

@@ -73,6 +83,7 @@ Dataset generators
7383
datasets.make_confounded_irm_data
7484
datasets.make_heterogeneous_data
7585
datasets.make_irm_data_discrete_treatments
86+
rdd.datasets.make_simple_rdd_data
7687

7788
Utility classes and functions
7889
-----------------------------

doc/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@
197197
'https://glmnet.stanford.edu/reference/cv.glmnet.html',
198198
# Valid URL (error not replicable), Causes 409 Client Error: Too Many Requests for url
199199
'http://dx.doi.org/10.2139/ssrn.3619201',
200+
# Valid URL, Causes ConnectTimeoutError
201+
'https://folia.unifr.ch/global/documents/306524',
202+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
203+
'https://doi.org/10.1146/annurev-economics-051520-021409',
204+
# Valdi DOI; Causes 504 Server Error: Gateway Time-out for ...
205+
'https://doi.org/10.1017/CBO9781139060035.008'
200206
]
201207

202208
# To execute R code via jupyter-execute one needs to install the R kernel for jupyter

doc/examples/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ General Examples
3030
py_double_ml_did_pretest.ipynb
3131
py_double_ml_basic_iv.ipynb
3232
py_double_ml_plm_irm_hetfx.ipynb
33+
py_double_ml_meets_flaml.ipynb
34+
py_double_ml_rdflex.ipynb
3335

3436

3537
Effect Heterogeneity

doc/examples/py_double_ml_apo.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Python: Average Potential Outcome (APO) Models\n",
88
"\n",
9-
"In this example, we illustrate how the [DoubleML](https://docs.doubleml.org/stable/index.html) package can be used to estimate average potential outcomes (APOs) in an interactive regression model (see [DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-model-irm)).\n",
9+
"In this example, we illustrate how the [DoubleML](https://docs.doubleml.org/stable/index.html) package can be used to estimate average potential outcomes (APOs) in an interactive regression model (see [DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#binary-interactive-regression-model-irm)).\n",
1010
"\n",
1111
"The goal is to estimate the average potential outcome\n",
1212
"\n",
@@ -172,8 +172,8 @@
172172
"source": [
173173
"## Single Average Potential Outcome Models (APO)\n",
174174
"\n",
175-
"Further, we have to specify machine learning algorithms. As in the [DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-model-irm) model, we have to set ``ml_m`` as a classifier and ``ml_g`` as a regressor (since the outcome is continuous). As in the \n",
176-
"[DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-model-irm) model, the classifier ``ml_m`` is used to estimate the conditional probability of receiving treatment level $d$ given the covariates $X$\n",
175+
"Further, we have to specify machine learning algorithms. As in the [DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-models-irm) model, we have to set ``ml_m`` as a classifier and ``ml_g`` as a regressor (since the outcome is continuous). As in the \n",
176+
"[DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-models-irm) model, the classifier ``ml_m`` is used to estimate the conditional probability of receiving treatment level $d$ given the covariates $X$\n",
177177
"\n",
178178
"$$m_{0,d}(X) = \\mathbb{E}[1\\{D=d\\}|X]$$\n",
179179
"\n",

doc/examples/py_double_ml_cate.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"source": [
1010
"# Python: Conditional Average Treatment Effects (CATEs) for IRM models\n",
1111
"\n",
12-
"In this simple example, we illustrate how the [DoubleML](https://docs.doubleml.org/stable/index.html) package can be used to estimate conditional average treatment effects with B-splines for one or two-dimensional effects in the [DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-model-irm) model."
12+
"In this simple example, we illustrate how the [DoubleML](https://docs.doubleml.org/stable/index.html) package can be used to estimate conditional average treatment effects with B-splines for one or two-dimensional effects in the [DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-models-irm) model."
1313
]
1414
},
1515
{

doc/examples/py_double_ml_gate.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"source": [
1010
"# Python: Group Average Treatment Effects (GATEs) for IRM models\n",
1111
"\n",
12-
"In this simple example, we illustrate how the [DoubleML](https://docs.doubleml.org/stable/index.html) package can be used to estimate group average treatment effects in the [DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-model-irm) model."
12+
"In this simple example, we illustrate how the [DoubleML](https://docs.doubleml.org/stable/index.html) package can be used to estimate group average treatment effects in the [DoubleMLIRM](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-models-irm) model."
1313
]
1414
},
1515
{
@@ -167,7 +167,7 @@
167167
"metadata": {},
168168
"source": [
169169
"## Interactive Regression Model (IRM)\n",
170-
"The first step is to fit a [DoubleML IRM Model](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-model-irm) to the data."
170+
"The first step is to fit a [DoubleML IRM Model](https://docs.doubleml.org/stable/guide/models.html#interactive-regression-models-irm) to the data."
171171
]
172172
},
173173
{

0 commit comments

Comments
 (0)