residualise: Partial out controls and fixed effects and return...

View source: R/regUtils.R

residualiseR Documentation

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

Description

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

## Not run: 
residualise('mpg', 'wt', 'cyl', mtcars)

## End(Not run)

apoorvalal/LalRUtils documentation built on Sept. 22, 2023, 5:53 p.m.