wght_deriv_array: Create an array of group weight derivatives

Description Usage Arguments Value

View source: R/wght_functions.R

Description

Uses wght_deriv_calc to compute the weight derivatives for each group per coverage level

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
wght_deriv_array(
  parameters,
  integrand,
  allocations,
  X,
  A,
  G,
  runSilent = TRUE,
  integrate_allocation = TRUE,
  ...
)

Arguments

parameters

vector of parameters passed to integrand

integrand

function to pass to the argument 'f' of integrate.

allocations

coverage levels in [0, 1]. Can be vector.

X

covariate matrix

A

vector of treatment assignments

G

vector of group assignments

runSilent

if FALSE, errors are printed to console. Defaults to TRUE.

integrate_allocation

Indicator of whether the integrand function uses the allocation parameter. Defaults to TRUE.

...

other arguments passed to integrand.

Value

a length(unique(group)) X length(params) X length(alphas) array of group weight derivatives


inferference documentation built on April 21, 2021, 5:06 p.m.