Groups should be numbered 1, ..., N
wght_matrix(
integrand,
allocations,
X,
A,
G,
parameters,
runSilent = TRUE,
integrate_allocation = TRUE,
...
)
function to pass to the argument 'f' of integrate
.
coverage levels in [0, 1]. Can be vector.
covariate matrix
vector of treatment assignments
vector of group assignments
vector of parameters passed to integrand
if FALSE, errors are printed to console. Defaults to TRUE.
Indicator of whether the integrand function uses the allocation parameter. Defaults to TRUE.
other arguments passed to integrand.
a length(unique(group)) X length(alphas) matrix of group weights