Skip to content

Commit 727df17

Browse files
committed
fix docstrings
1 parent b1d4e6d commit 727df17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doubleml/datasets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ def make_confounded_irm_data(n_obs=500, theta=0.0, gamma_a=0.127, beta_a=0.58, l
900900
"""
901901
Generates counfounded data from an interactive regression model.
902902
903-
The data generating process is defined as follows (similar to the Monte Carlo simulation used
903+
The data generating process is defined as follows (inspired by the Monte Carlo simulation used
904904
in Sant'Anna and Zhao (2020)).
905905
906906
Let :math:`X= (X_1, X_2, X_3, X_4, X_5)^T \\sim \\mathcal{N}(0, \\Sigma)`, where :math:`\\Sigma` corresponds
@@ -933,7 +933,7 @@ def make_confounded_irm_data(n_obs=500, theta=0.0, gamma_a=0.127, beta_a=0.58, l
933933
934934
p(Z) &= \\frac{\\exp(f_{ps}(Z))}{1 + \\exp(f_{ps}(Z))},
935935
936-
f_{ps}(Z) &= 0.75 \\cdot (-Z_1 + 0.5 \\cdot Z_2 -0.25 \\cdot Z_3 - 0.1 \\cdot Z_4).
936+
f_{ps}(Z) &= 0.75 \\cdot (-Z_1 + 0.1 \\cdot Z_2 -0.25 \\cdot Z_3 - 0.1 \\cdot Z_4).
937937
938938
and generate the treatment :math:`D = 1\\{m(X, A) \\ge U\\}` with :math:`U \\sim \\mathcal{U}[0, 1]`.
939939
Since :math:`A` is independent of :math:`X`, the short form of the propensity score is given as
@@ -948,7 +948,7 @@ def make_confounded_irm_data(n_obs=500, theta=0.0, gamma_a=0.127, beta_a=0.58, l
948948
949949
Y &= \\theta \\cdot D (Z_5 + 1) + g(Z) + \\beta_A \\cdot A + \\varepsilon
950950
951-
g(Z) &= 210 + 27.4 \\cdot Z_1 +13.7 \\cdot (Z_2 + Z_3 + Z_4)
951+
g(Z) &= 2.5 + 0.74 \\cdot Z_1 + 0.25 \\cdot Z_2 + 0.137 \\cdot (Z_3 + Z_4)
952952
953953
where :math:`\\varepsilon \\sim \\mathcal{N}(0,5)`.
954954
This implies an average treatment effect of :math:`\\theta`. Additionally, the long and short forms of
@@ -977,7 +977,7 @@ def make_confounded_irm_data(n_obs=500, theta=0.0, gamma_a=0.127, beta_a=0.58, l
977977
Default is ``500``.
978978
theta : float or int
979979
Average treatment effect.
980-
Default is ``5.0``.
980+
Default is ``0.0``.
981981
gamma_a : float
982982
Coefficient of the unobserved confounder in the propensity score.
983983
Default is ``0.127``.

0 commit comments

Comments
 (0)