residualise | R Documentation |
Partial out controls and fixed effects and return residualised outcome and treatment
residualise(y, a, x = "1", d = "0", df)
y |
outcome |
a |
primary rhs variable |
x |
controls |
d |
fixed effects |
df |
dataframe |
## Not run:
residualise('mpg', 'wt', 'cyl', mtcars)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.