Description Usage Arguments Value Author(s) References Examples
View source: R/residualize.lowess.R
This function will create an approximate fitted function for a lowess line, then residualize the Y based on the fit of the model
1 | residualize.lowess(x, y, return.fitted)
|
x |
The predictor of interest |
y |
The outcome of interest |
A list of residuals
Dustin Fife
This function was developed by Glen_b on Stack Overflow
1 2 3 4 5 6 7 | data(airquality)
head(airquality)
attach(airquality)
plot(Wind, Temp)
lines(lowess(Wind, Temp), col="red")
residuals = residualize.lowess(Wind, Temp)
plot(Wind, residuals)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.