genGammaTT: Function to generate gamma moments for 'testthat'

Description Usage Arguments Value

View source: R/testfunctions_covariates.R

Description

This function generates the gamma moments from a population level data set. This is specifically constructed to carry out tests.

Usage

1
genGammaTT(data, s0, s1, lb, ub)

Arguments

data

data.table.

s0

variable name (contained in the data) for the S-weight used to generate the Gamma moments for the control group.

s1

variable name (contained in the data) for the S-weight used to generate the Gamma moments for the treated group.

lb

scalar, lower bound for integration.

ub

scalar, upper bound for integration.

Value

list, contains the vectors of the Gamma moments for control and treated observations.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.