This file implements the Higher Order Influence Function (HOIF) estimators for Average Treatment Effect (ATE) estimation with nuisance functions.

transform_covariates(X, method = "splines", basis_dim, degree = 3, period = 1)

Arguments

X

Matrix of covariates (n x p)

method

Character: "splines", "fourier", or "none"

basis_dim

Integer: dimension of basis expansion (ignored if method = "none")

degree

Integer: degree for B-splines (default 3; ignored if method != "splines")

period

Numeric: period for Fourier basis (default 1; ignored if method != "fourier")

Value

Matrix Z (n x (k * p + 1) or n x (p + 1)) of transformed covariates with intercept

Author

Xingyu Chen Transform covariates to basis functions