genGammaTT {ivmte} | R Documentation |
Function to generate gamma moments for 'testthat'
Description
This function generates the gamma moments from a population level data set. This is specifically constructed to carry out tests.
Usage
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.
[Package ivmte version 1.4.0 Index]