Displaying 20 results from an estimated 3000 matches similar to: "stl function"
2006 Jul 13
1
ts and stl functions - still a problem
Hi
I am still having problems with using the stl function, when I read the csv file into R into a file called tkr and use dim(tkr) the result is 132 1 which is fine.
When coerce it into a trime series using ts either:
tstkr <- ts(t(tkr), deltat=1/12) or
tstkr <- ts(c(tkr), deltat=1/12)
and use the stl function I get the following error:
Error in
2001 May 16
1
stl in library(ts)
I am running R 1.2.2 under Linux. When using the function stl in
the ts library, how can I save the seasonal component? What I
would like was something like:
library(ts)
data(nottem)
data.stl <- stl(nottem, "per")
x <- data.stl$sea
This what I get:
> x
NULL
I would, however, like to store in x the seasonal component.
Thanks in advance. Francisco.
--
Francisco
2005 Dec 07
2
Change labels of x-axes in Plot of stl() function?
Hi all,
How can the label of the x-axes in the plot() of a stl.object be adapted?
e.g.,
When plotting: plot(stl(nottem, "per"))
In the labels of the x-axes is “time”. How can this be changed to e.g.,
“Time (dekade) “?
It does not work with xlab or others anymore…
Thanks,
Jan
_______________________________________________________________________
Ir. Jan Verbesselt
Research
2004 Jul 21
2
Testing autocorrelation & heteroskedasticity of residuals in ts
Hi,
I'm dealing with time series. I usually use stl() to
estimate trend, stagionality and residuals. I test for
normality of residuals using shapiro.test(), but I
can't test for autocorrelation and heteroskedasticity.
Is there a way to perform Durbin-Watson test and
Breusch-Pagan test (or other simalar tests) for time
series?
I find dwtest() and bptest() in the package lmtest,
but it
2008 Sep 01
2
Help with stl
I just realized after some tips and a little digging that what I was trying to do "manually" has already been done. I was trying to fit my data using 'lm' then taking the "residual" data and trying to do a spectral estimate (for seasonality) usiing fft and then passing the "residual" of all of that to arima to get the irregular portion of the time series
2001 May 11
1
output from STL
Hi All,
How do I can create a new vector, i.e. 'seasonal' or 'trend' from the
resultant seasonal or trend component of the Time.Series object produced by
STL, and how I could superpose in the same graphic, i.e. original data and
trend or seasonality?
Thanks in advance!
Antonio
Antonio Rodr?guez Verdugo
CICEM Agua del Pino
Huelva
Oceanography and Coastal Resources,
PhD Program,
2009 Nov 05
1
Build recommended packages from source under Windows
Hello,
>From the date time stamps I see that not only do I have the results of the build in 'gnuwin32/front-ends' but I can also see the time stamps have changed in the main bin directory so I assume that the result of 'make all recommended' also copies the results there.
Now on to the packages. I was interested in following the flow of 'stl' so I added the following
2008 Feb 07
1
Voronoi
Hello everyone
I have a problem with tripack package, I want to perform a Voronoi
tessellation on a specific domain (I have the shape file), in order to
weight my climatic data with the area ... How Can I do it?
Thank you very much
Andrea
2002 Oct 09
1
s.window in stl()
Hi,
This is actually a theory question.
I'm a bit confused by the s.window parameter in the stl() function (which
is in the ts package). For example, in the stl documentation it uses the
nottem data, and then:
plot(stl(nottem, s.win = 4, t.win = 50, t.jump = 1))
What does it mean by s.win = 4? Is it because a year has 4 seasons
(namely Spring, Summer, Autumn and Winter)? If so will it
2011 Mar 11
0
Seasonality in STL Decomposition
I having issues with interpreting the results of STL decomposition. The
following is the data used as well as the decompsed seasonality, trend and
the remainder components. It is a weekly data.
The original data doesn't appear to be seasonal. But there seems to be a
periodic peak in the seasonal component. Can some one please let me know how
to interpret the seasonality plot in this???
Also,
2003 Oct 22
1
Help with STL function in R compared to S-Plus
I am trying to understand the nuances of STL (seasonal trend
decomposition with loess) based on William Cleveland's (and others?)
original development. I do not understand the specification or use of
"frequency components" or equivalent "low-pass filter" components in
the stl() function.
I have run the stl() function on a standard example data (co2) in both
S-Plus and
2010 Oct 12
1
Help with STL function to decompose
Hi everyone.
I'm having some troubles with STL function to decompose some data.
My issue is that I have monthly data from September 2005 up to August 2010
i. e. 60 observations.
I define it in the following way:
*u<-read.csv("C:/CELEBREX.csv",header = TRUE)
u.ts<-ts(u, start=c(2005,9), frequency=12)
*
The issue is that when I try to use
stl(u.ts, 'per')
Then the
2008 Sep 02
2
More help with stl?
I don't understand the output of stl. As a simple example:
y <- numeric(1:365)
y[250] = 1
stl <- stl(ts(y, frequency=7), s.window="periodic")
This returns without error but the results are puzzling to me. If you plot the results it is probably easiest to visualize what I mean.
plot(stl)
This shows the original data (a single spike at 250). A trend (which also shows a bump
2011 May 18
1
Multiple plots on one device using stl
G'day,
I am looking at monthly reports, and have three series of monthly data from 2007 to 2009. I would like to show the season decomposition of these two series side by side on the one device, however using plot doesn't seem to respect any use of layout(matrix(1:3, ncol=3)) or par(mfcol=c(1,3)).
I'm guessing that this means that the plot(stl) perhaps uses them, but I can't find
2005 Jul 18
2
how to change bar colours in plot.stl
Dear helpeRs,
Is it possible to change the shading colour of the range bars in the plot
generated by plot.stl? By default they are grey, but I would prefer them
white (I am preparing some graphics for a powerpoint presentation so I'm
inverting all colours).
As far as I can see plot.stl allows you to turn off the range bars, but
nothing about the shading colour. I tried to look at the
2006 Oct 12
3
ts vs zoo
> Hello,
>
> I have lots of data in zoo format and would like to do some time
> series analysis. (using library(zoo), library(ts) )
>
> My data is usually from one year, and I try for example stl() to find
> some seasonalities or trends.
>
> I have now accepted, that I might have to convert my series into ts()
> but still I am not able to execute the comand since
2006 Jan 05
3
Using STL containers in R/C++
Hi All,
I am in the process of writing an R extension in c++ and am using several
STL containers (e.g., vector<double>, map<int, double>, multimap<int,
double>). I make sure to clear all these containers at the end of the
.Call. Everything compiles and runs just fine, but I'm a bit worried
since I haven't found any other packages that use STL.
So, my question: is it
2008 Jul 22
1
rollmean and stl
I need to investigate how rollmean and the trend returned from stl differ.
I am trying to find out exactly what the trend part of stl is (I have just
started coding in R and do not know fortran). I need to extract this
because it will be used in further calculations, and it needs to be verified
to make sure that I am using the right process. I would like to use this
to remove the seasonal
2004 Jul 18
2
stl,package=stats
Greetings:
I'm using the time series decomposition routine "stl" from the package "stats".
But how do I get the results into a vector to work with them?
example:
data(AirPassengers)
m<-stl(AirPassengers,"per")
print(m)
This lists the output but can't figure out how to extract the individual series like seasonal, trend, irregular.
Thanks,
Bob
2003 Jul 30
2
STL- TimeSeries Decomposition
Dear R Helpers,
Currently I'm working with the ts package of R and created a TimeSerie
from pixels extracted from satellite imagery(S10 NDVI data, 10 daily
composites). I'm trying to decompose this signal in different signals
(seasonal and trend).
When testing out the STL method is says => Only univariate timeseries
are allowed, but the current Timeserie I'm using is univariate!