transform_covariates.RdThis 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)Matrix of covariates (n x p)
Character: "splines", "fourier", or "none"
Integer: dimension of basis expansion (ignored if method = "none")
Integer: degree for B-splines (default 3; ignored if method != "splines")
Numeric: period for Fourier basis (default 1; ignored if method != "fourier")
Matrix Z (n x (k * p + 1) or n x (p + 1)) of transformed covariates with intercept