This function defined the class of box functions as defined in Willems et al. (2024+).
G.box(
x,
g.idx,
data,
n.box.per.cov,
norm.func,
cov.ranges = NULL,
norm.cov.out = NULL,
...
)
Vector of covariates to be normalized alongside the data. Default is
x = NULL
.
Index of the instrumental function, in {1, ..., n.inst.func}.
Data frame.
Number of box functions to consider per continuous covariate.
Function to be used to normalize the covariates.
Matrix of ranges of the covariates. Used for normalizing
the data to the unit interval before applying the instrumental functions.
Default is cov.ranges = NULL
.
Output of a preliminary call to the supplied covariate normalization function.
Additional arguments will be ignored. Useful for allowing
compatibility with the implementations of other instrument function families.
Specifically, it allows to ignore the degree
argument used in
'G.spline.R' and 'G.cd.R'.