Skip to content
Prev 30340 / 398506 Next

Modeling the trend and eliminate it

Hi,
I would like to eliminate the trend of a set localised (with x an  y) data.
I try to fit a linear model to the data:
mod.01 <- lm(ff~x+y)
I've got so a model. My question is how can I do to subtract the model from 
the initial f data ?