From 38a506e7d99bcb7e563df5ec635c619abf408141 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 25 Oct 2023 16:19:01 +0200 Subject: [PATCH] Add bootstrap_kwargs to bootstrap call in msm weighting --- src/estimagic/estimation/msm_weighting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/estimagic/estimation/msm_weighting.py b/src/estimagic/estimation/msm_weighting.py index 97e5b437b..c5bef1411 100644 --- a/src/estimagic/estimation/msm_weighting.py +++ b/src/estimagic/estimation/msm_weighting.py @@ -58,7 +58,9 @@ def func(data, **kwargs): ) # xxxx won't be necessary soon! return out - cov_arr = bootstrap(data=data, outcome=func, outcome_kwargs=moment_kwargs).cov() + cov_arr = bootstrap( + data=data, outcome=func, outcome_kwargs=moment_kwargs, **bootstrap_kwargs + ).cov() if isinstance(cov_arr, pd.DataFrame): cov_arr = cov_arr.to_numpy() # xxxx won't be necessary soon