Displaying 20 results from an estimated 6000 matches similar to: "stats::decompose - Problem finding seasonal component without trend"
2011 Apr 06
0
Proposed modification to decompose() and plot.decomposed.ts()
The decompose() function truncates the seasonal component
unnecessarily. I've modified the function to fix this problem, and
also added the original data to the object returned (to enable better
plotting).
I've also modified the plot.decomposed.ts() function so that it plots
the original data in the top panel rather than the reconstructed data.
The difference between the two is that the
2012 Mar 21
3
how calculate seasonal component & cyclic component of time series?
i am new to time series,whatever i know up till now,from that
i have uploaded time series file & what to build arma model,but for that i
want p & q values(orders)
tell me how to calculate best p & q values to find best AIC values for model
i am doing but giving error
>bhavar<-read.table(file.choose()) #taking time series file
> decompose(bhavar$V1)
Error in
2012 Jun 15
0
decomposing decompose(), issue?
Hi
I'm just stepping through the decompose() function, in "stats". Does
this contained line of code not work if you have a time series ending
"unevenly" (i.e., middle of the year), or am I missing something?
season <- na.omit(c(as.numeric(window(season, start(x) +
c(1, 0), end(x))), as.numeric(window(season, start(x),
start(x) + c(0, f)))))
The line seems to
2011 Feb 01
1
Estimation and Forecast of Seasonal Component
Hi list,
I would like to estimate and forecast the seasonal component of a series. My
model which uses daily data would be something y t = alpha + beta x SeasComp
t + gamma x OtherRegressors t.
One approach to this would be use quarterly dummies, another to use a sine
function. The first would cause a step change when we move from a season to
another; the latter impose too much regularity in
2011 May 12
1
strength of seasonal component
Hi All,
a) Is it possible to estimate the strength of seasonality in timeseries
data. Say I have monthly mean prices of an ten different assets. I decompose
the data using stl() and obtain the seasonal parameter for each month. Is it
possible to order the assets based on the strength of seasonality?
b) which gives a better estimate on seasonality stl() or a robust linear
model like
2007 Feb 27
2
ts; decompose; plot and title
Is there any way to give a "decent" title after I plot something
generated by decompose?
For example:
# generate something with period 12
x <- rnorm(600) + sin(2 * pi * (1:600) / 12)
# transform to a monthy time series
y <- ts(x, frequency=12, start=c(1950,1))
# decompose
z <- decompose(y)
# plot
plot(z)
Now, the title is the ugly "Decomposition of additive time
2012 Apr 02
0
STL decomposition of time series with multiple seasonalities
Hi all,
I have a time series that contains double seasonal components (48 and 336) and I would like to decompose the series into the following time series components (trend, seasonal component 1, seasonal component 2 and irregular component). As far as I know, the STL procedure for decomposing a series in R only allows one seasonal component, so I have tried decomposing the series twice. First,
2009 Jul 06
1
Decompose function : calculation of each component
Hello,
I'd like to know how R does calculate each component in the decompose()
function?
More precisely, how is calculated the final trend component in this
function?
Thanks for your answer
Myriam
--
View this message in context: http://www.nabble.com/Decompose-function-%3A-calculation-of-each-component-tp24362207p24362207.html
Sent from the R help mailing list archive at Nabble.com.
2011 Oct 25
0
How to find seasonal effect and trend from raw data (newbie ...)
Hello,
>From the data provided in the attached file, I would like to find the
seasonal effect and the trend (if there are some) like in page 10 of the
following document:
http://www.statoek.wiso.uni-goettingen.de/veranstaltungen/zeitreihen/sommer03/ts_r_intro.pd
http://www.statoek.wiso.uni-goettingen.de/veranstaltungen/zeitreihen/sommer03/ts_r_intro.pd
f
Small problem: I don't know how to
2025 Jan 03
0
stats/HoltWinters.R inverted logic in seasonal in R and C
Hello,
I have noticed a potentially confusing implementation in the HoltWinters
function regarding the seasonal parameter mapping between R and C code:
https://github.com/wch/r-source/blob/4a1ed749271c52e60a85e794e6f34b0831efb1ae/src/library/stats/R/HoltWinters.R#L98
The C code interprets a seasonal value of 1 as additive and 0 as
multiplicative.
The R seasonal can be "additive" or
2012 Feb 11
0
Using igraph: community membership of components built by decompose.graph()
Hi everyone!
I would appreciate help with using decompose.graph(), community
detection functions from igraph and lapply().
I have an igraph object G with vertex attribute "label" and edge
attribute "weight". I want to calculate community
memberships using different functions from igraph, for simplicity let
it be "walktrap.community".
This graph is not connected,
2011 Apr 29
1
Specify custom par(mfrow()) layout for defined plot()
Dear R Users,
I am doing stats::decompose() on 4 different time series. When I issue
csdA <- decompose(tsA)
plot(csdA)
I get a summary plot for observed, trend, seasonal and random components
of decomposed time series tsA. As I understand it, the object returned
by decompose() has it's own plot method where mfrow(4,1) etc. is
defined. Now suppose I wanted to wrap those mfrow(4,1) into
2004 Apr 29
1
I'm trying to use package ts (decompose). How do you set up the data/ See attached. thanks
InDATA <-read.table("C:/Data/May 2004/season.txt",header=T)
X <- decompose(InDATA)
print(X)
Period Connections
Q1 67519
Q2 69713
Q3 68920
Q4 69452
Q1 70015
Q2 59273
Q3 57063
Q4 65596
Q1 73527
Q2 58586
Q3 69522
Q4 60091
Q1 51686
Q2 63490
Q3 55702
Q4 53200
Q1 51033
Q2 48175
Q3 52709
Q4 50106
Q1 50855
Q2 43466
Q3 48190
Q4 41702
Q1 48747
Q2 51441
Q3 42537
2008 Sep 14
1
need help please (HoltWinters function)
every time i try to run HoltWinters i get this error message:
> HoltWinters(z, seasonal="additive")
Error in decompose(ts(x[1:wind], start = start(x), frequency = f), seasonal)
:
time series has no or less than 3 periods
what's going on? somebody please help me.
--
View this message in context:
2012 Feb 09
0
Help with TimeSeries
Hello everyone!
I´ve started using R last week and I´m having really persistent problems
trying to make predictions using the HoltWinters function.
I´m sending my script and the errors I´m getting.
My data is:
Jan Feb Mar Apr May Jun Jul Ago Sep Oct Nov Dec
2004 118 143 169 158 143 135 135 140 135 125.0000 120.0000 120.0000
2005 143 158 180 180 150 150 153 148 150 145.0000
2024 Oct 03
1
Time series data decomposition from by minute data
Dear all,
My data is by minutes and I can see it has seasonal trend by daily and
weekly. How do I decompose the minute data into daily and weekly
some data:
> dput(tail(dt_train,100))structure(c(11L, 11L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L,
10L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L,
10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L,
10L, 11L, 11L, 10L,
2012 Jan 07
1
using deltat parameter in time series in HoltWinters prediction
Hi.
I have to forecast a time series of a Internet network traffic bitrate.
The data are in file
http://www.forumaltavilla.it/joomla/datitesi/dati.datand the sampling
time is every 0.05 seconds.
Now, i want to use HoltWinters forecasting. This is my script.
dt=1.58443823e-9 #0.05 seconds in years
dati.ts=ts(scan("dati.dat"),start=0,deltat=dt)
model=HoltWinters(dati.ts)
2010 Feb 07
2
predicting with stl() decomposition
Hi mailinglist members,
I’m actually working on a time series prediction and my current approach is
to decompose the series first into a trend, a seasonal component and a
remainder. Therefore I’m using the stl() function. But I’m wondering how to
get the single components in order to predict the particular fitted series’.
This code snippet illustrates my problem:
series <-
2024 Oct 04
1
Time series data decomposition from by minute data
Hallo
you can extract POSIX object
tv <- as.POSIXct(index(dt_train))
and use cut together with aggregate
cut(tv, "hour")
aggregate(dt_train, list(cut(tv, "hour")), mean)
2014-10-06 21:00:00 9.807692
2014-10-06 22:00:00 8.666667
Cheers.
Petr
?t 3. 10. 2024 v 17:25 odes?latel roslinazairimah zakaria <
roslinaump at gmail.com> napsal:
> Dear all,
>
> My
2002 Jul 30
1
Comparison of two time series using R
We have two time series: the first is a series of weekly counts of
isolates of RSV (respiratory syncytial virus) by pathology laboratories,
and the second is a series of weekly counts of cases of bronchiolitis in
young children presenting to hospital emergency departments.
Bronchiolitis in young children is usually caused by RSV infection, and
simple visual inspection reveals a very close