Home » date » 2009 » Jun » 05 »

opgave9bW.Verlinden

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 05 Jun 2009 08:07:30 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55.htm/, Retrieved Fri, 05 Jun 2009 16:08:59 +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/2009/Jun/05/t1244210939yptuvcv8bl59g55.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 «
665272 661735 621014 574889 677734 717075 653612 690697 665864 830701 789303 617808 805775 909449 599973 955874 799494 876097 823300 900079 860754 923882 1121084 741757 966066 901978 648659 852732 706036 835792 722489 714262 739459 816834 743082 683375 1006000 866000 644000 703000 699000 713000 688000 672000 600000 847000 697000 687000 973000 796000 658000 709000 798000 820000 776000 699000 828433 942131 792916 864942 982689 948143 874863 735794 854605 1284216 961585 818379 1079498 1095091 1008925 967118 1127715
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1665272NANA139904.652777778NA
2661735NANA73882.1944444445NA
3621014NANA-129843.772222222NA
4574889NANA-29312.9722222222NA
5677734NANA-53199.4055555555NA
6717075NANA76453.4944444445NA
7653612645643.169444444686329.625-40686.45555555557968.83055555564
8690697650995.669444444702505.333333333-51509.663888888939701.3305555556
9665864670670.036111111711950.041666667-41280.0055555556-4806.03611111105
10830701778595.611111111726947.70833333351647.902777777852105.3888888889
11789303795732.927777778747895.41666666747837.5111111111-6429.92777777766
12617808715701.186111111759594.666666667-43893.4805555556-97893.186111111
13805775913195.569444444773290.916666667139904.652777778-107420.569444444
14909449862967.694444444789085.573882.194444444546481.3055555556
15599973676086.394444444805930.166666667-129843.772222222-76113.3944444444
16955874788620.152777778817933.125-29312.9722222222167253.847222222
17799494782440.469444444835639.875-53199.405555555517053.5305555556
18876097931082.119444444854628.62576453.4944444445-54985.1194444443
19823300825785.502777778866471.958333333-40686.4555555555-2485.50277777773
20900079821329.794444444872839.458333333-51509.663888888978749.2055555556
21860754833276.744444444874556.75-41280.005555555627477.2555555556
22923882923935.652777778872287.7551647.9027777778-53.6527777778683
231121084911933.594444444864096.08333333347837.5111111111209150.405555555
24741757814629.144444444858522.625-43893.4805555556-72872.1444444444
25966066992547.444444444852642.791666667139904.652777778-26481.4444444444
26901978914582.152777778840699.95833333373882.1944444445-12604.1527777778
27648659698059.852777778827903.625-129843.772222222-49400.8527777777
28852732789076.361111111818389.333333333-29312.972222222263655.6388888889
29706036744979.511111111798178.916666667-53199.4055555555-38943.5111111113
30835792856449.744444444779996.2576453.4944444445-20657.7444444443
31722489738541.127777778779227.583333333-40686.4555555555-16052.1277777777
32714262727882.752777778779392.416666667-51509.6638888889-13620.7527777777
33739459736419.202777778777699.208333333-41280.00555555563039.7972222222
34816834822914.152777778771266.2551647.9027777778-6080.15277777775
35743082812571.761111111764734.2547837.5111111111-69489.761111111
36683375715431.269444444759324.75-43893.4805555556-32056.2694444444
371006000892676.027777778752771.375139904.652777778113323.972222222
38866000823455.611111111749573.41666666773882.194444444542544.3888888889
39644000612157.936111111742001.708333333-129843.77222222231842.0638888889
40703000708134.861111111737447.833333333-29312.9722222222-5134.86111111101
41699000683585.261111111736784.666666667-53199.405555555515414.7388888889
42713000811469.119444444735015.62576453.4944444445-98469.1194444444
43688000693105.211111111733791.666666667-40686.4555555555-5105.21111111098
44672000677990.336111111729500-51509.6638888889-5990.3361111111
456e+05685886.661111111727166.666666667-41280.0055555556-85886.661111111
46847000779647.90277777872800051647.902777777867352.0972222224
47697000780212.51111111173237547837.5111111111-83212.511111111
48687000697064.852777778740958.333333333-43893.4805555556-10064.8527777778
49973000888987.986111111749083.333333333139904.65277777884012.013888889
50796000827757.19444444475387573882.1944444445-31757.1944444445
51658000634674.269444444764518.041666667-129843.77222222223325.7305555556
52709000748686.902777778777999.875-29312.9722222222-39686.9027777778
53798000732760.761111111785960.166666667-53199.405555555565239.2388888889
54820000873824.411111111797370.91666666776453.4944444445-53824.4111111112
55776000764502.419444444805188.875-40686.455555555511497.5805555555
56699000760422.211111111811931.875-51509.6638888889-61422.2111111111
57828433786027.119444444827307.125-41280.005555555642405.8805555556
58942131889107.402777778837459.551647.902777777853023.5972222222
59792916888771.969444444840934.45833333347837.5111111111-95855.9694444444
60864942818741.852777778862635.333333333-43893.480555555646200.1472222223
619826891029615.02777778889710.375139904.652777778-46926.0277777779
62948143976299.402777778902417.20833333373882.1944444445-28156.4027777779
63874863788008.602777778917852.375-129843.77222222286854.3972222223
64735794905373.777777778934686.75-29312.9722222222-169579.777777778
65854605896861.052777778950060.458333333-53199.4055555555-42256.0527777777
6612842161039771.66111111963318.16666666776453.4944444445244444.338888889
67961585932931.794444444973618.25-40686.455555555528653.2055555555
68818379NANA-51509.6638888889NA
691079498NANA-41280.0055555556NA
701095091NANA51647.9027777778NA
711008925NANA47837.5111111111NA
72967118NANA-43893.4805555556NA
731127715NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55/14yam1244210846.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55/14yam1244210846.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55/2mzoj1244210846.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55/2mzoj1244210846.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55/3cpmo1244210846.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55/3cpmo1244210846.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55/4ww2m1244210846.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244210939yptuvcv8bl59g55/4ww2m1244210846.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