[R] Modeling the trend and eliminate it

Roger Peng rpeng at stat.ucla.edu
Tue Apr 8 19:15:23 CEST 2003


residuals(mod.01)

or maybe

ff - fitted(mod.01)

-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng

On Tue, 8 Apr 2003, Poizot Emmanuel wrote:

> 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 ?
> 
> -- 
> Cordialement
> ----------------------------------------
> Emmanuel POIZOT
> Cnam/Intechmer
> Digue de Collignon
> 50110 Tourlaville
> Tél : (33)(0)2 33 88 73 42
> Fax : (33)(0)2 33 88 73 39
> -----------------------------------------
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>



More information about the R-help mailing list