Displaying 20 results from an estimated 6000 matches similar to: "Meaning of Error Message from decompose"
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
2011 Aug 24
2
regarding changing of title of decompose graph
Hi All,
I am new to this forum. I have just started learning R. When i use
plot(decompose(x)), i am getting the title " Additive time series
decomposition". How to make this title off and change to some other title.
Any help regarding this is highly appreciated.
With sincerer regards,
Upananda
--
View this message in context:
2012 Mar 20
2
igraph: decompose.graph: Error: protect(): protection stack overflow
I just got this error:
> library(igraph)
> comp <- decompose.graph(gr)
Error: protect(): protection stack overflow
Error: protect(): protection stack overflow
>
what can I do?
the digraph is, indeed, large (300,000 vertexes), but there are very
many very small components (which I would rather not discard).
PS. the doc for decompose.graph does not say which mode is the default.
--
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
2018 Mar 13
2
Understanding TS objects
R Help Community
I'm trying to understand time series (TS) objects. Thought I understood but recently have run into a series of error messages that I'm not sure how to handle. I have 15 years of quarterly data and I typically create a TS object via something like...
data.ts <- ts(mydata, start = 2002, frequency = 4)
this create a matric as opposed to a vector object as I receive a
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.
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
2009 Feb 22
1
split/decompose lines
Dear R users,
I have a very simple problem but I can't find the function in R to deal with
it.
I need to split (or decompose) one line into many lines using one field as a
reference.
I have a table with the following format:
A B Frequency
23 3 2
24 2 5
25 1 3
And need to split each line into several lines according to the frequency to
achieve something like this:
A B
2004 Sep 23
7
decompose a correlation matrix
Is there a simple way to decompose the upper triangle
of a correlation matrix to a linear list;
For example:
X Y Z
X 1 2 3
Y 2 1 4
Z 3 4 1
so you get a list like:
xy 2
XZ 3
YZ 4
I suspect you can do it with a matrix transformation, but
that beyond me at present.
Many thanks
Mark
_________________________
Department of Molecular and Human Genetics,
Baylor College of Medicine,
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
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
2006 Feb 06
3
decomposed.ts class and method
Dear R People:
In the function "decompose", the object has the class of "decomposed.ts".
(from package stats)
I would like to see the class definition and the method for the plotting.
However, when I use
isClass("decomposed.ts")
I get "FALSE".
When I check getMethods("plot")
there is no method for plot on decomposed.ts
Any suggestions,
2009 Jul 08
0
stats::decompose - Problem finding seasonal component without trend
Hi R-help,
I'd like to extract the seasonal component of a short timeseries, and was
hoping to use stats::decompose. I don't want to decompose the 'trend'
component so I thought I should call decompose(x,filter=0). I think I've
either misunderstood the filter argument or come upon a bug/feature in
decompose.
# EXAMPLE
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
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,
2012 May 01
2
[LLVMdev] structs get decomposed when shouldn't
Hi all,
I'm new on the list, so I want to say hello for everybody!
I'm from Hungary and writing a LLVM backend for Tile64 processor as my
master's thesis. It's a big time pressure on me, so the thesis will
probably describe a backend only providing an assembly printer, but the
development is likely to be continued beyond the thesis.
For now, I've run into a very annoying
2009 Mar 29
1
Data decomposition
Hi R users,
I have a time series variable that is only available at a monthly level for
1 years that I need to decompose to a weekly time series level - can
anyone recommend a R function that I can use to decompose this series?
eg. if month1 = 1200 I would to decompose so that the sum of the weeks for
month1 equals 1200, etc..
Many thanks in advance for any help.
--
View this message in
2005 Feb 11
1
importing minitab datasets
I'm having trouble using the read.mtp function in the foreign package
to import datasets from minitab (.mtw) format. Specifically, each file
I try to import fails to load any data beyond a header row stating the
version of Minitab that saved the dataset. I get this error:
incomplete final line found by readtableHeader on 'income.mtw'
The dataset appears to be complete (ie, using
2005 Apr 20
6
Anova - adjusted or sequential sums of squares?
Hi
I am performing an analysis of variance with two factors, each with two
levels. I have differing numbers of observations in each of the four
combinations, but all four combinations *are* present (2 of the factor
combinations have 3 observations, 1 has 4 and 1 has 5)
I have used both anova(aov(...)) and anova(lm(...)) in R and it gave the
same result - as expected. I then plugged this into
2008 Jul 06
1
Different Autocorrelation using R and other softwares
Dear All,
Would like to ask the inconsistency in the autocorrelation from R with
SPSS/Minitab. I have tried a dataset x with 20 data (1-20) and ask R to give
the autocorrelation of different lags using the command < acf(x,
lag.max=100, type = "correlation"), However while SPSS and Minitab give the
same answers (0.85 for lag1), R gives 0.3688 which is much smaller.
Obviously, the