[R] baseline shift / detrend
Gabor Grothendieck
ggrothendieck at myway.com
Thu Feb 24 05:01:33 CET 2005
Peter Soros <soros <at> mac.com> writes:
>
> Hello,
>
> I am analyzing data of biological motion (mouth movements) over time (~
> 10 mins). There is a considerable baseline shift which appears to be a
> linear trend. Is it possible to get rid of this baseline shift using R?
> Any help is appreciated!
The following will detrend y:
resid(lm(y ~ seq(y)))
More information about the R-help
mailing list