make_x_y: Construct design matrix for outcome regression model

Description Usage Arguments Value

Description

Construct design matrix for outcome regression model

Usage

1
make_x_y(z1, z2, a, m, u = NULL, type = c("observed", "full"), am_intx)

Arguments

z1

Length-N vector for baseline confounder Z1

z2

Length-N vector for baseline confounder Z2

a

Length-N vector for observed or hypothetical A

m

Length-N vector for observed or hypothetical M

u

Length-N vector for observed (true) or hypothetical U

type

Whether to make naive matrix excluding U ("observed") or full matrix that includes U ("full")

am_intx

0/1 Whether to include A*M interaction

Value

NxP design matrix for the Y outcome model


lcomm/rstanmed documentation built on Dec. 6, 2020, 9:11 a.m.