Skip to content

Commit 74fa00f

Browse files
authored
Merge pull request #236 from DoubleML/s-update-agg-se
Update aggregation of ses
2 parents 0b3b5fe + c36d797 commit 74fa00f

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

doc/guide/resampling.rst

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@ Standard errors are obtained as described in :ref:`se_confint`.
202202
The aggregation of the estimates of the causal parameter and its standard errors is done using the median
203203

204204
.. math::
205-
\tilde{\theta}_{0} &= \text{Median}\big((\tilde{\theta}_{0,m})_{m \in [M]}\big),
206-
207-
\hat{\sigma} &= \sqrt{\text{Median}\big((\hat{\sigma}_m^2 + (\tilde{\theta}_{0,m} - \tilde{\theta}_{0})^2)_{m \in [M]}\big)}.
208-
205+
\tilde{\theta}_{0} = \text{Median}\big((\tilde{\theta}_{0,m})_{m \in [M]}\big).
209206
The estimate of the causal parameter :math:`\tilde{\theta}_{0}` is stored in the ``coef`` attribute
210207
and the asymptotic standard error :math:`\hat{\sigma}/\sqrt{N}` in ``se``.
211208

@@ -214,6 +211,18 @@ and the asymptotic standard error :math:`\hat{\sigma}/\sqrt{N}` in ``se``.
214211
.. tab-item:: Python
215212
:sync: py
216213

214+
In python, the confidence intervals and p-values are based on the :py:class:`doubleml.DoubleMLFramework` object.
215+
This class provides methods such as ``confint``, ``bootstrap`` or ``p_adjust``. For different repetitions,
216+
the computations are done separately and combined via the median (based on Chernozhukov et al., 2018).
217+
218+
The estimate of the asymptotic standard error :math:`\hat{\sigma}/\sqrt{N}` is then based on the median aggregated confidence intervals with crictial value :math:`1.96`, i.e.,
219+
220+
.. math::
221+
222+
\hat{\sigma}/\sqrt{N} = (\text{Median}\big((\tilde{\theta}_{0,m} + 1.96\cdot \tilde{\sigma}_{m}/\sqrt{N})_{m \in [M]}\big) - \text{Median}\big((\tilde{\theta}_{0,m})_{m \in [M]}\big)) / 1.96.
223+
224+
Remark that methods such as methods such as ``confint``, ``bootstrap`` or ``p_adjust`` do not use the estimate of the standard error.
225+
217226
.. ipython:: python
218227
219228
print(dml_plr_obj.coef)
@@ -222,6 +231,12 @@ and the asymptotic standard error :math:`\hat{\sigma}/\sqrt{N}` in ``se``.
222231
.. tab-item:: R
223232
:sync: r
224233

234+
The aggregation of the standard errors is done using the median
235+
236+
.. math::
237+
238+
\hat{\sigma} = \sqrt{\text{Median}\big((\hat{\sigma}_m^2 + (\tilde{\theta}_{0,m} - \tilde{\theta}_{0})^2)_{m \in [M]}\big)}.
239+
225240
.. jupyter-execute::
226241

227242
print(dml_plr_obj$coef)
@@ -249,9 +264,7 @@ The parameter estimates :math:`(\tilde{\theta}_{0,m})_{m \in [M]}` and asymptoti
249264
print(dml_plr_obj$all_coef)
250265
print(dml_plr_obj$all_se)
251266

252-
In python, the confidence intervals and p-values are based on the :py:class:`doubleml.DoubleMLFramework` object.
253-
This class provides methods such as ``confint``, ``bootstrap`` or ``p_adjust``. For different repetitions,
254-
the computations are done seperately and combined via the median (as based on Chernozhukov et al., 2018).
267+
255268

256269
Externally provide a sample splitting / partition
257270
+++++++++++++++++++++++++++++++++++++++++++++++++

0 commit comments

Comments
 (0)