Compute HOIF Estimators for ATE

compute_hoif_estimators(
  residuals,
  B_matrices,
  m = 7,
  backend = "torch",
  pure_R_code = FALSE
)

Arguments

residuals

A list containing the computed residuals: `R1`, `r1`, `R0`, and `r0`.

B_matrices

A list containing the projection-like basis matrices: `B1` and `B0`.

m

Integer. The maximum order of the HOIF estimator.

backend

Character. The computation backend for the `ustat` package; either "torch" (default) or "numpy".

pure_R_code

Logical. Whether to use a native R implementation. This serves as a fallback when the `reticulate` environment (Python) encounters configuration issues. Note: The pure R implementation only supports up to the 6th order ($m = 6$).

Value

A list of HOIF estimators (ATE, HOIF, IIFF) for orders $l = 2, ..., m$.