project: Project x to the orthogonal complement of c.

View source: R/utils.R

projectR Documentation

Project x to the orthogonal complement of c.

Description

This function project exposures x to the orthogonal complement of confounders c.

Usage

project(cfd, x)

Arguments

cfd

a matrix of nxq dimensional confounders

x

a matrix of nxp dimensional exposures

Details

This function uses c to form projection P=I-c(c'c)^(-)c' and then compute projection z=Px

Value

projtocorth, the projected x.


hychen-uic/TEV documentation built on Jan. 24, 2025, 9:14 p.m.