Skip to contents

Partial out controls and fixed effects and return residualised outcome and treatment

Usage

residualise(y, a, x = "1", d = "0", df)

Arguments

y

outcome

a

primary rhs variable

x

controls

d

fixed effects

df

dataframe

Examples

if (FALSE) {
residualise('mpg', 'wt', 'cyl', mtcars)
}