Home » date » 2010 » May » 24 »

Classical Deomposition - consumptie wijn - veronika kaplova

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 24 May 2010 20:25:23 +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/May/24/t1274732807bik8j2wsa96q36j.htm/, Retrieved Mon, 24 May 2010 22:26:48 +0200
 
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/May/24/t1274732807bik8j2wsa96q36j.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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2550 2867 3458 2961 3163 2880 3331 3062 3534 3622 4464 5411 2564 2820 3508 3088 3299 2939 3320 3418 3604 3495 4163 4882 2211 3260 2992 2425 2707 3244 3965 3315 3333 3583 4021 4904 2252 2952 3573 3048 3059 2731 3563 3092 3478 3478 4308 5029 2075 3264 3308 3688 3136 2824 3644 4694 2914 3686 4358 5587 2265 3685 3754 3708 3210 3517 3905 3670 4221 4404 5086 5725 2367 3819 4067 4022 3937 4365 4290
 
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
12550NANA0.655466181107409NA
22867NANA0.9167101380858NA
33458NANA0.980675474116908NA
42961NANA0.907120714371436NA
53163NANA0.877008802096257NA
62880NANA0.865573822385454NA
733313600.605376640123442.51.045927487767640.925122209062605
830623540.403145715733441.1251.02885049096320.864873257076769
935343408.0607217613441.250.99035545855751.0369533551544
1036223609.736626904273448.6251.046717641641021.00339730411474
1144644248.368516681283459.583333333331.228000052997121.05075630385454
1254115054.509944630453467.708333333331.457593735910251.07052910356785
1325642274.276470806553469.708333333330.6554661811074091.12739151678015
1428203193.894513602443484.083333333330.91671013808580.882934607886998
1535083434.162064445063501.833333333330.9806754741169081.02150100495239
1630883174.431143246413499.458333333330.9071207143714360.972772714434116
1732993053.415770598383481.6250.8770088020962571.08042934465931
1829392983.669031338593447.041666666670.8655738223854540.985028824956985
1933203566.91779547163410.291666666671.045927487767640.930775585637248
2034183512.409838607443413.916666666671.02885049096320.973121064185133
2136043377.854880274993410.750.99035545855751.06694932960134
2234953518.67219208153361.6251.046717641641020.993272407661397
2341634063.861508718463309.333333333331.228000052997121.02439514512708
2448824806.233144947073297.3751.457593735910251.01576429040538
2522112187.263335264543336.958333333330.6554661811074091.01085222083357
2632603079.7259051553359.541666666670.91671013808581.05853575947887
2729923279.337923968853343.958333333330.9806754741169080.91237928794447
2824253026.457076714573336.333333333330.9071207143714360.801266939702482
2927072924.020430255763334.083333333330.8770088020962570.925780125196738
3032442881.567385873043329.083333333330.8655738223854541.12577620634652
3139653484.725327057863331.708333333331.045927487767641.13782282041369
3233153416.383792784213320.583333333331.02885049096320.970324237868608
3333333299.823123102813331.958333333330.99035545855751.01005413795209
3435833540.129903735153382.1251.046717641641021.01210975230588
3540214203.137181395883422.751.228000052997120.956666372393918
3649044979.200934941753416.041666666671.457593735910250.984896987302917
3722522214.110137599073377.916666666670.6554661811074091.01711290769032
3829523072.697794096343351.8750.91671013808580.960719275963864
3935733283.914409514733348.6250.9806754741169081.0880307932654
4030483039.118970019333350.291666666670.9071207143714361.00292223834219
4130592944.885931338973357.8750.8770088020962571.03874991131122
4227312921.347716126843375.041666666670.8655738223854540.934842499208138
4335633527.78267530433372.8751.045927487767641.00998284983433
4430923475.971383719163378.51.02885049096320.889535516455166
4534783347.855362842853380.458333333330.99035545855751.03887403219434
4634783554.740337483053396.083333333331.046717641641020.978411830345564
4743084207.077014899253425.958333333331.228000052997121.02398886085121
4850295003.980028452233433.041666666671.457593735910251.00500001426974
4920752254.994840645643440.291666666670.6554661811074090.92017948892774
5032643218.03454723873510.416666666670.91671013808581.01428370394617
5133083484.993743186793553.666666666670.9806754741169080.94921260804763
5236883210.149021374783538.833333333330.9071207143714361.14885632269513
5331363113.015827107513549.583333333330.8770088020962571.00738324961035
5428243094.354283876133574.916666666670.8655738223854540.912629822226602
5536443771.701681514113606.083333333331.045927487767640.966142157493526
5646943736.31342670333631.541666666671.02885049096321.25631858570861
5729143632.293703502723667.666666666670.99035545855750.802247901151261
5836863859.335171200593687.083333333331.046717641641020.955086779584716
5943584532.5481956123636911.228000052997120.961490051935613
6055875426.560745721543722.958333333331.457593735910251.02956555022533
6122652466.328061871023762.708333333330.6554661811074090.918369309832087
6236853420.169132686613730.916666666670.91671013808581.07743209678796
6337543670.382269272973742.708333333330.9806754741169081.02278174985397
6437083471.626567292353827.083333333330.9071207143714361.06808722888995
6532103409.225550015523887.333333333330.8770088020962570.941562813286257
6635173396.006760977463923.416666666670.8655738223854541.03562809132562
6739054114.068612510053933.416666666671.045927487767640.94918203068507
6836704057.014698490623943.251.02885049096320.904606039846341
6942213923.664532372493961.8750.99035545855751.07578004316483
7044044174.309954864439881.046717641641021.05502467416631
7150864950.528713651264031.3751.228000052997121.02736501375604
7257255971.7615360243140971.457593735910250.958678601860484
732367NA4148.375NANA
743819NANANANA
754067NANANANA
764022NANANANA
773937NANANANA
784365NANANANA
794290NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/24/t1274732807bik8j2wsa96q36j/1d3vc1274732720.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274732807bik8j2wsa96q36j/1d3vc1274732720.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274732807bik8j2wsa96q36j/2d3vc1274732720.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274732807bik8j2wsa96q36j/2d3vc1274732720.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274732807bik8j2wsa96q36j/36vdf1274732720.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274732807bik8j2wsa96q36j/36vdf1274732720.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274732807bik8j2wsa96q36j/46vdf1274732720.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274732807bik8j2wsa96q36j/46vdf1274732720.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; 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