search for: decompose

Displaying 20 results from an estimated 477 matches for "decompose".

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 met...
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...
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 se...
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 x<-ts(c(2:12,rep(1,12),1:12),start=c(2009,2),frequency=12);x # Starts in...
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 w...
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, sta...
2008 Feb 02
1
Meaning of Error Message from decompose
...x 1 36 2 44 3 45 4 106 5 38 6 46 7 47 8 112 9 42 10 49 11 48 12 118 13 42 14 50 15 51 16 118 Trying my luck with R, I tried to use the decompose function but it gives me the following: Error in decompose(data.t) : time series has no or less than 3 periods data.t is indeed a time series (is.ts returns true) and when I plot data.t it looks like a times series. Any suggestions on how to use decompose here (if it is the right function)...
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 a...
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: http://r.789695.n4.nabble.com/regarding-changi...
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.communi...
2007 Dec 12
1
Getting error message using R: Please help (it's coursework due in on Friday)
I've been trying for the past 3 weeks to use R (much better than Matlab but I am very bad with computers so I am very new to all of this) and know how to input the data (hey, it's a start!) but every time I type in the following: dcm <- decompose(information) I get the following error message: Error in decompose(information) : time series has no or less than 3 periods Could you please aid me so that I can progress to the next step. What I am in fact trying to do at the moment is plot a graph of the information so I had assumed it would b...
2012 Mar 21
3
how calculate seasonal component & cyclic component of time series?
...rom 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 decompose(bhavar$V1) : time series has no or less than 2 periods what this error is telling ? http://r.789695.n4.nabble.com/file/n4491470/tinku.txt tinku.txt -- View this message in context: http://r.789695.n4.nabble.com/how-calculate-seasonal-component-cyclic-component-of-t...
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 Molec...
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 de...
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 Frequency 23 3 1 23 3 1 24...
2012 May 01
2
[LLVMdev] structs get decomposed when shouldn't
...registers, it must be stored well aligned, i.e. just like as it resides in memory. A padding register must be maintained before a double-word aligned value if needed, and more than one value can be stored in a single register, e.g. two i16 in a i32 register. As I can understand, LLVM is trying to decompose datatypes into smaller components in some circumstances. E.g. decomposing a double into two i32 argument automatically is very useful for me because the processor consists of only i32 registers. However, this decomposition is a nightmare in the case of structs should passed inside registers. Speaki...
2013 Oct 30
2
[LLVMdev] Is there pass to break down <4 x float> to scalars
Hi, Richard, Your decompose vector patch works perfect on my site. Unfortunately, I still get stupid code because llvm '-dse' fails followed by 'decompose-vector' . I read the DSE code and it is definitely capable of eliminating unused memory stores if its AA works. I don't think basic AA works for me....
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,...
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 Q...
2012 May 02
0
[LLVMdev] structs get decomposed when shouldn't
...tored well aligned, i.e. just > like as it resides in memory. A padding register must be maintained > before a double-word aligned value if needed, and more than one value > can be stored in a single register, e.g. two i16 in a i32 register. > > As I can understand, LLVM is trying to decompose datatypes into smaller > components in some circumstances. Can you please explain more what you are referring to here. LLVM itself shouldn't be changing function parameters or return types unless the function has local (internal) linkage (since in that case ABI requirements don't matte...