Skip to content

Commit fd2dce8

Browse files
authored
Merge pull request #161 from DoubleML/m-pliv-iv-type
Adapt nuisance est for `IV-type` score (PLR) & new score `IV-type` for PLIV
2 parents 0537cbe + b96ac05 commit fd2dce8

Some content is hidden

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

43 files changed

+2458
-609
lines changed

R/double_ml_iivm.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,10 @@ DoubleMLIIVM = R6Class("DoubleMLIIVM",
366366
"ml_r1" = r1_hat)
367367
return(res)
368368
},
369-
score_elements = function(y, z, d, g0_hat, g1_hat, m_hat, r0_hat,
370-
r1_hat, smpls) {
369+
score_elements = function(y = y, z = z, d = d,
370+
g0_hat = g0_hat, g1_hat = g1_hat, m_hat = m_hat,
371+
r0_hat = r0_hat, r1_hat = r1_hat,
372+
smpls = smpls) {
371373

372374
u0_hat = y - g0_hat
373375
u1_hat = y - g1_hat

R/double_ml_irm.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ DoubleMLIRM = R6Class("DoubleMLIRM",
296296
}
297297
psis = list(psi_a = psi_a, psi_b = psi_b)
298298
} else if (is.function(self$score)) {
299-
psis = self$score(y, d, g0_hat, g1_hat, m_hat, smpls)
299+
psis = self$score(
300+
y = y, d = d,
301+
g0_hat = g0_hat, g1_hat = g1_hat, m_hat = m_hat,
302+
smpls = smpls)
300303
}
301304
return(psis)
302305
},

R/double_ml_pliv.R

Lines changed: 420 additions & 101 deletions
Large diffs are not rendered by default.

R/double_ml_plr.R

Lines changed: 332 additions & 31 deletions
Large diffs are not rendered by default.

man/DoubleMLPLIV.Rd

Lines changed: 157 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)