Home » date » 2009 » Dec » 04 »

klassiek model

*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: Fri, 04 Dec 2009 06:17:00 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe.htm/, Retrieved Fri, 04 Dec 2009 14:18:08 +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/2009/Dec/04/t1259932683ymanc5mfm4ng4fe.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
5594 5585 5710 5511 5403 5826 5884 5965 5960 6064 6046 5954 5952 5960 5983 5996 6021 6094 6202 6276 6306 6342 6345 6328 6191 6261 6253 6198 6247 6293 6381 6448 6470 6516 6532 6526 6533 6498 6507 6464 6453 6468 6497 6808 6793 6907 6792 6757 6734 6654 6589 6469 6521 6448 6410 6528 6445 6458 6215 6167
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
15594NANA-18.1510416666663NA
25585NANA-38.744791666667NA
35710NANA-59.9114583333328NA
45511NANA-120.317708333333NA
55403NANA-97.4322916666668NA
65826NANA-86.161458333334NA
758845791.244791666675806.75-15.505208333333592.755208333334
859655932.026041666675837.2916666666794.734375000000232.9739583333339
959605946.7343755864.2916666666782.442708333332813.265625
1060646034.182291666675895.875138.30729166666729.817708333333
1160466030.0156255941.8333333333388.182291666666715.984375
1259546011.307291666675978.7532.5572916666669-57.307291666666
1359525985.0156256003.16666666667-18.1510416666663-33.015625
1459605990.630208333336029.375-38.744791666667-30.630208333333
1559835996.838541666676056.75-59.9114583333328-13.8385416666661
1659965962.432291666676082.75-120.31770833333333.567708333333
1760216009.3593756106.79166666667-97.432291666666811.640625
1860946048.6718756134.83333333333-86.16145833333445.3281250000009
1962026144.869791666676160.375-15.505208333333557.130208333333
2062766277.6093756182.87594.7343750000002-1.60937499999909
2163066289.1093756206.6666666666782.442708333332816.890625
2263426364.6406256226.33333333333138.307291666667-22.6406249999991
2363456332.348958333336244.1666666666788.182291666666712.6510416666670
2463286294.432291666676261.87532.557291666666933.567708333333
2561916259.473958333336277.625-18.1510416666663-68.473958333334
2662616253.505208333336292.25-38.7447916666677.49479166666697
2762536246.338541666676306.25-59.91145833333286.66145833333394
2861986200.0156256320.33333333333-120.317708333333-2.015625
2962476237.942708333336335.375-97.43229166666689.05729166666788
3062936265.255208333336351.41666666667-86.16145833333427.744791666667
3163816358.411458333336373.91666666667-15.505208333333522.5885416666679
3264486492.776041666676398.0416666666794.7343750000002-44.7760416666661
3364706500.942708333336418.582.4427083333328-30.942708333333
3465166578.473958333336440.16666666667138.307291666667-62.473958333333
3565326548.0156256459.8333333333388.1822916666667-16.015625
3665266508.2656256475.7083333333332.557291666666917.7343750000009
3765336469.682291666676487.83333333333-18.151041666666363.317708333333
3864986468.9218756507.66666666667-38.74479166666729.078125
3965076476.213541666676536.125-59.911458333332830.7864583333339
4064646445.557291666676565.875-120.31770833333318.4427083333339
4164536495.567708333336593-97.4322916666668-42.567708333333
4264686527.2968756613.45833333333-86.161458333334-59.296875
4364976615.9531256631.45833333333-15.5052083333335-118.953124999998
4468086741.067708333336646.3333333333394.734375000000266.932291666667
4567936738.692708333336656.2582.442708333332854.307291666667
4669076798.182291666676659.875138.307291666667108.817708333334
4767926751.098958333336662.9166666666788.182291666666740.901041666667
4867576697.473958333336664.9166666666732.557291666666959.526041666667
4967346642.307291666676660.45833333333-18.151041666666391.6927083333348
5066546606.4218756645.16666666667-38.74479166666747.5781250000009
5165896559.088541666676619-59.911458333332829.9114583333339
5264696465.473958333336585.79166666667-120.3177083333333.52604166666697
5365216445.6093756543.04166666667-97.432291666666875.3906250000009
5464486408.255208333336494.41666666667-86.16145833333439.744791666667
556410NANA-15.5052083333335NA
566528NANA94.7343750000002NA
576445NANA82.4427083333328NA
586458NANA138.307291666667NA
596215NANA88.1822916666667NA
606167NANA32.5572916666669NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe/15lgx1259932618.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe/15lgx1259932618.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe/2a6ja1259932618.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe/2a6ja1259932618.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe/3q0p41259932618.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe/3q0p41259932618.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe/42ayf1259932618.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259932683ymanc5mfm4ng4fe/42ayf1259932618.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