dot-ConfounderAdjustedResiduals: Replaces the outcome variable with residuals from a linear...

Description Usage Arguments Value Author(s)

Description

Replaces the outcome variable with residuals from a linear regression on the confounders. I.e. removes effect of confounders for the conjugate models.

Usage

1
.ConfounderAdjustedResiduals(data, outcome.var, confounders)

Arguments

data

matrix or data.frame containing outcome and confounders

outcome.var

name of outcome.variable

confounders

list of confounders

Value

data original dataset with the confounders removed and the outcome replaces with adjusted residuals

Author(s)

Paul Newcombe


pjnewcombe/R2BGLiMS documentation built on Feb. 10, 2020, 8:52 p.m.