residQ: residQ

View source: R/residQ.R

residQR Documentation

residQ

Description

This function computes the residuals that are used as outcomes in the reduced dimension regressions for Q.

Usage

residQ(L2, A0, A1, Q2n, Q1n, g0n, g1n, abar, ...)

Arguments

L2

A vector outcome of interest

A0

A vector treatment delivered at baseline.

A1

A vector treatment deliver after L1 is measured.

Q2n

A vector of estimates of Q_2,0

Q1n

A vector of estimates of Q_1,0

g0n

A vector of estimates of g_0,0

g1n

A vector of estimates of g_1,0

abar

A vector of length 2 indicating the treatment assignment that is of interest.

Value

A list with elements rQ1 and rQ2 that are the outcomes in the reduced dimension regressions on g0n and g1n, respectively.


benkeser/drinf documentation built on Oct. 22, 2023, 9:50 a.m.