Hello and Happy New year to Everybody, I am a new user of R and I am a little bit "lost". I would like to know how tu use R for detrending, which kind of algorithms I have to use. Thank u very much and Sorry for my "english" I am Francophone. Alice [[alternative HTML version deleted]]
NDIKUMAGENGE Alice <andikumagenge <at> businessdecision.com> writes:> I am a new user of R and I am a little bit "lost". > I would like to know how tu use R for detrending, which kind > of algorithms I have to use.The following will remove a trend from vector y: resid(lm(y ~ seq(along = y))) Also check out ?stl and ?filter .
Dear Alice, you may try stl decomposition ?stl Best, Susana -- Susana Barbosa http://www.fc.up.pt/pessoas/susana.barbosa Departamento de Matematica Aplicada Faculdade de Ciências, Universidade Porto Rua do Campo Alegre, 687, 4169-007, Porto Tel: 220 100 840 Fax: 220 100 809