Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


ivmte (version 1.0.1)

wald: Wald weights

Description

Function generating the S-weighs for Wald estimand. The function operates by using only a single dummy as the instrument. It is up to the user to construct this dummy and subset the data accordingly to get the correct Wald weights.

Usage

wald(D, Z)

Arguments

D

Matrix, one column being 1s, the other being treatment indicator D.

Z

Matrix, one column being 1s, the other being the instrument dummy.

Value

A list of two vectors: one is the weight for D = 0, the other is the weight for D = 1.