Home » date » 2010 » Dec » 29 »

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 29 Dec 2010 13:26:25 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl.htm/, Retrieved Wed, 29 Dec 2010 14:24:39 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1203.6 1180.59 1156.85 1191.5 1191.33 1234.18 1220.33 1228.81 1207.01 1249.48 1248.29 1280.08 1280.66 1294.87 1310.61 1270.09 1270.2 1276.66 1303.82 1335.85 1377.94 1400.63 1418.3 1438.24 1406.82 1420.86 1482.37 1530.62 1503.35 1455.27 1473.99 1526.75 1549.38 1481.14 1468.36 1378.55 1330.63 1322.7 1385.59 1400.38 1280 1267.38 1282.83 1166.36 968.75 896.24 903.25 825.88 735.09 797.87 872.81 919.14 919.32 987.48 1020.62 1057.08 1036.19 1095.63 1115.1 1073.87 1104.49 1169.43 1186.69 1089.41 1030.71 1101.6 1049.33 1141.2 1183.26 1180.55 1258.51
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11203.6NANA-66.6014149305556NA
21180.59NANA-41.9572482638889NA
31156.85NANA15.3809809027778NA
41191.5NANA35.9754600694444NA
51191.33NANA2.12546006944454NA
61234.18NANA9.14087673611125NA
71220.331255.956501736111219.21536.7415017361111-35.6265017361111
81228.811268.265772569441227.187541.0782725694444-39.4557725694447
91207.011243.586605902781238.355833333335.23077256944445-36.5766059027781
101249.481241.785772569441248.03708333333-6.25131076388877.69422743055566
111248.291260.565876736111254.597916666675.96796006944434-12.2758767361111
121280.081222.822855902781259.65416666667-36.83131076388957.2571440972224
131280.661198.301501736111264.90291666667-66.601414930555682.358498263889
141294.871230.884418402781272.84166666667-41.957248263888963.9855815972223
151310.611299.804730902781284.4237515.380980902777810.8052690972222
161270.091333.819210069441297.8437535.9754600694444-63.7292100694444
171270.21313.350876736111311.225416666672.12546006944454-43.1508767361108
181276.661334.040043402781324.899166666679.14087673611125-57.3800434027776
191303.821373.487335069441336.7458333333336.7415017361111-69.6673350694446
201335.851388.330355902781347.2520833333341.0782725694444-52.4803559027778
211377.941364.889105902781359.658333333335.2307725694444513.0508940972222
221400.631371.419105902781377.67041666667-6.251310763888729.2108940972225
231418.31404.208376736111398.240416666675.9679600694443414.091623263889
241438.241378.565772569441415.39708333333-36.83131076388959.6742274305557
251406.821363.328168402781429.92958333333-66.601414930555643.491831597222
261420.861403.016918402781444.97416666667-41.957248263888917.8430815972222
271482.371475.452647569441460.0716666666715.38098090277786.91735243055564
281530.621506.545043402781470.5695833333335.975460069444424.0749565972224
291503.351478.135460069441476.012.1254600694445425.2145399305557
301455.271484.749626736111475.608759.14087673611125-29.4796267361112
311473.991506.688585069441469.9470833333336.7415017361111-32.6985850694443
321526.751503.760772569441462.682541.078272569444422.9892274305557
331549.381459.790772569441454.565.2307725694444589.5892274305556
341481.141438.849522569441445.10083333333-6.251310763888742.2904774305555
351468.361436.335876736111430.367916666675.9679600694443432.0241232638887
361378.551376.401605902781413.23291666667-36.8313107638892.14839409722208
371330.631330.837751736111397.43916666667-66.6014149305556-0.207751736111049
381322.71332.500668402781374.45791666667-41.9572482638889-9.80066840277755
391385.591350.629730902781335.2487515.380980902777834.9602690972224
401400.381322.660460069441286.68535.975460069444477.7195399305558
4112801240.893376736111238.767916666672.1254600694445439.1066232638891
421267.381201.334626736111192.193759.1408767361112566.0453732638889
431282.831181.093168402781144.3516666666736.7415017361111101.736831597222
441166.361138.747855902781097.6695833333341.078272569444427.6121440972222
45968.751059.666605902781054.435833333335.23077256944445-90.9166059027779
46896.241006.767022569441013.01833333333-6.2513107638887-110.527022569445
47903.25983.906293402778977.9383333333335.96796006944434-80.6562934027776
48825.88914.416189236111951.2475-36.831310763889-88.536189236111
49735.09862.058168402778928.659583333333-66.6014149305556-126.968168402778
50797.87871.223585069444913.180833333333-41.9572482638889-73.3535850694443
51872.81926.818480902778911.437515.3809809027778-54.0084809027777
52919.14958.530876736111922.55541666666735.9754600694444-39.3908767361112
53919.32941.815876736111939.6904166666672.12546006944454-22.4958767361112
54987.48967.991293402778958.8504166666679.1408767361112519.4887065972222
551020.621021.31650173611984.57536.7415017361111-0.696501736110918
561057.081056.526605902781015.4483333333341.07827256944440.553394097222281
571036.191049.239105902781044.008333333335.23077256944445-13.0491059027777
581095.631057.929939236111064.18125-6.251310763888737.7000607638893
591115.11081.885043402781075.917083333335.9679600694443433.2149565972222
601073.871048.482022569441085.31333333333-36.83131076388925.3879774305556
611104.49NA1091.26458333333NANA
621169.43NA1095.96583333333NANA
631186.69NA1105.59875NANA
641089.41NA1115.265NANA
651030.71NA1124.77875NANA
661101.6NANANANA
671049.33NANANANA
681141.2NANANANA
691183.26NANANANA
701180.55NANANANA
711258.51NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl/1cf1p1293629181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl/1cf1p1293629181.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl/2cf1p1293629181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl/2cf1p1293629181.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl/3cf1p1293629181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl/3cf1p1293629181.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl/4m60s1293629181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293629078vapu55eczxwvrnl/4m60s1293629181.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ;
 
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by