Compute basis projection matrices

compute_basis_matrix(Z, A, Omega1, Omega0)

Arguments

Z

Basis matrix (n x k)

A

treament weight (n x 1)

Omega1

Inverse Gram matrix for treatment group

Omega0

Inverse Gram matrix for control group

Value

List with B1 and B0 (projection matrices)