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! Peter Dr. Peter Soros Sunnybrook and Women's College Health Sciences Centre 2075 Bayview Avenue Room S646 Toronto,âZ Ontario,âZ M4N 3M5 Canada psoros at sten.sunnybrook.utoronto.ca
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)))