Skip to content

Commit 55f9ca7

Browse files
authored
Merge pull request #251 from DoubleML/s-update-data
Update Docs for datasets and data classes
2 parents e7fc363 + 2e5919a commit 55f9ca7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2868
-15183
lines changed

doc/api/data_class.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ DoubleML Data Class
1212
DoubleMLData
1313
DoubleMLClusterData
1414
DoubleMLPanelData
15+
DoubleMLSSMData
16+
DoubleMLRDDData
17+
DoubleMLDIDData

doc/api/datasets.rst

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Datasets
66
Dataset Loaders
77
~~~~~~~~~~~~~~~
88

9-
.. currentmodule:: doubleml
9+
.. currentmodule:: doubleml.datasets
1010

1111
.. autosummary::
1212
:toctree: generated/
1313

14-
datasets.fetch_401K
15-
datasets.fetch_bonus
14+
fetch_401K
15+
fetch_bonus
1616

1717
Dataset Generators
1818
~~~~~~~~~~~~~~~~~~
@@ -22,18 +22,21 @@ Dataset Generators
2222
.. autosummary::
2323
:toctree: generated/
2424

25-
datasets.make_plr_CCDDHNR2018
26-
datasets.make_pliv_CHS2015
27-
datasets.make_irm_data
28-
datasets.make_iivm_data
29-
datasets.make_plr_turrell2018
30-
datasets.make_pliv_multiway_cluster_CKMS2021
31-
32-
datasets.make_ssm_data
33-
datasets.make_confounded_plr_data
34-
datasets.make_confounded_irm_data
35-
datasets.make_heterogeneous_data
36-
datasets.make_irm_data_discrete_treatments
25+
irm.datasets.make_irm_data
26+
irm.datasets.make_iivm_data
27+
irm.datasets.make_heterogeneous_data
28+
irm.datasets.make_irm_data_discrete_treatments
29+
irm.datasets.make_confounded_irm_data
30+
irm.datasets.make_ssm_data
31+
32+
plm.datasets.make_plr_CCDDHNR2018
33+
plm.datasets.make_plr_turrell2018
34+
plm.datasets.make_pliv_CHS2015
35+
plm.datasets.make_pliv_multiway_cluster_CKMS2021
36+
plm.datasets.make_confounded_plr_data
37+
3738
did.datasets.make_did_SZ2020
3839
did.datasets.make_did_CS2021
39-
rdd.datasets.make_simple_rdd_data
40+
did.datasets.make_did_cs_CS2021
41+
42+
rdd.datasets.make_simple_rdd_data

doc/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
"navbar_align": "left",
9595
"logo": {
9696
"text": project,
97-
"image_light": "img/logo.png",
98-
"image_dark": "img/logo_dark.png",
97+
"image_light": "../img/logo.png",
98+
"image_dark": "../img/logo_dark.png",
9999
},
100100
"header_links_before_dropdown": 6,
101101
"use_edit_page_button": True,
@@ -133,6 +133,7 @@
133133
html_favicon = "../img/favicon.ico"
134134

135135
html_sidebars = {
136+
136137
"**": [
137138
"logo.html",
138139
"search-field.html",

doc/examples/did/py_did.ipynb

Lines changed: 64 additions & 83 deletions
Large diffs are not rendered by default.

doc/examples/did/py_did_pretest.ipynb

Lines changed: 12 additions & 44 deletions
Large diffs are not rendered by default.

doc/examples/did/py_panel.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@
367367
"metadata": {},
368368
"outputs": [],
369369
"source": [
370+
"np.random.seed(42)\n",
370371
"dml_obj = DoubleMLDIDMulti(dml_data, **default_args)\n",
371372
"dml_obj.fit()\n",
372373
"print(dml_obj)"

doc/examples/did/py_panel_simple.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
"cell_type": "markdown",
251251
"metadata": {},
252252
"source": [
253-
"## Event Study Aggregation\n",
253+
"### Event Study Aggregation\n",
254254
"\n",
255255
"Finally, `aggregation=\"eventstudy\"` aggregates $\\widehat{ATT}(\\mathrm{g},t_\\text{pre},t_\\text{eval})$ based on exposure time $e = t_\\text{eval} - \\mathrm{g}$ (respecting group size)."
256256
]

doc/examples/did/py_rep_cs.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"metadata": {},
5151
"outputs": [],
5252
"source": [
53-
"n_obs = 5000\n",
53+
"n_obs = 10000\n",
5454
"n_periods = 6\n",
5555
"\n",
5656
"df = make_did_cs_CS2021(n_obs, dgp_type=4, include_never_treated=True, n_periods=n_periods, n_pre_treat_periods=3,\n",
@@ -951,7 +951,7 @@
951951
],
952952
"metadata": {
953953
"kernelspec": {
954-
"display_name": "dml_dev",
954+
"display_name": ".venv",
955955
"language": "python",
956956
"name": "python3"
957957
},
@@ -965,7 +965,7 @@
965965
"name": "python",
966966
"nbconvert_exporter": "python",
967967
"pygments_lexer": "ipython3",
968-
"version": "3.12.8"
968+
"version": "3.12.3"
969969
}
970970
},
971971
"nbformat": 4,

doc/examples/py_double_ml_apo.ipynb

Lines changed: 32 additions & 11925 deletions
Large diffs are not rendered by default.

doc/examples/py_double_ml_basic_iv.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
],
187187
"metadata": {
188188
"kernelspec": {
189-
"display_name": "Python 3 (ipykernel)",
189+
"display_name": ".venv",
190190
"language": "python",
191191
"name": "python3"
192192
},
@@ -200,7 +200,7 @@
200200
"name": "python",
201201
"nbconvert_exporter": "python",
202202
"pygments_lexer": "ipython3",
203-
"version": "3.11.5"
203+
"version": "3.12.3"
204204
}
205205
},
206206
"nbformat": 4,

0 commit comments

Comments
 (0)