Skip to content

Commit 442c701

Browse files
committed
apply styler
1 parent 31950f0 commit 442c701

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

R/double_ml_pliv.R

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,10 @@ DoubleMLPLIV = R6Class("DoubleMLPLIV",
334334

335335
if (self$data$n_instr == 1) {
336336
if (is.character(self$score)) {
337-
if (self$score == "partialling out") {
338-
psi_a = -w_hat * v_hat
339-
psi_b = v_hat * u_hat
340-
}
337+
if (self$score == "partialling out") {
338+
psi_a = -w_hat * v_hat
339+
psi_b = v_hat * u_hat
340+
}
341341
psis = list(
342342
psi_a = psi_a,
343343
psi_b = psi_b)
@@ -358,20 +358,20 @@ DoubleMLPLIV = R6Class("DoubleMLPLIV",
358358
r_r_tilde = resample(task_r_tilde, ml_r_tilde, resampling_r_tilde,
359359
store_models = TRUE)
360360
r_hat_tilde = as.data.table(r_r_tilde$prediction())$response
361-
362-
if (is.character(self$score)) {
361+
362+
if (is.character(self$score)) {
363363
if (self$score == "partialling out") {
364364
psi_a = -w_hat * r_hat_tilde
365365
psi_b = r_hat_tilde * u_hat
366366
}
367-
psis = list(
368-
psi_a = psi_a,
369-
psi_b = psi_b)
370-
} else if (is.function(self$score)) {
371-
stop(paste(
367+
psis = list(
368+
psi_a = psi_a,
369+
psi_b = psi_b)
370+
} else if (is.function(self$score)) {
371+
stop(paste(
372372
"Callable score not implemented for DoubleMLPLIV with",
373373
"partialX=TRUE and partialZ=FALSE with several instruments."))
374-
}
374+
}
375375
}
376376
return(psis)
377377
},

0 commit comments

Comments
 (0)