Home » date » 2009 » Jun » 06 »

C decomposition-aantal geboortes per maand (2000-2006)-Olivier Percy

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 06 Jun 2009 08:00:47 -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/06/t1244296977sg4kt37ezzi1evn.htm/, Retrieved Sat, 06 Jun 2009 16:02:57 +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/06/t1244296977sg4kt37ezzi1evn.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 «
9.733 9.259 9.864 9.215 10.103 9.380 9.896 10.117 9.451 9.700 9.081 9.084 9.743 8.587 9.731 9.563 9.998 9.437 10.038 9.918 9.252 9.737 9.035 9.133 9.487 8.700 9.627 8.947 9.283 8.829 9.947 9.628 9.318 9.605 8.640 9.214 9.567 8.547 9.185 9.470 9.123 9.278 10.170 9.434 9.655 9.429 8.739 9.552 9.687 9.019 9.672 9.206 9.069 9.788 10.312 10.105 9.863 9.656 9.295 9.946 9.701 9.049 10.190 9.706 9.765 9.893 9.994 10.433 10.073 10.112 9.266 9.820 10.097 9.115 10.411 9.678 10.408 10.153 10.368 10.581 10.597 10.680 9.738 9.556
 
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
19.733NANA1.01632409597119NA
29.259NANA0.92383779191618NA
39.864NANA1.02324064070637NA
49.215NANA0.983182260561294NA
510.103NANA1.00019173350271NA
69.38NANA0.994618561085224NA
79.89610.1132462129939.5741.056324024753810.978518646889671
810.1179.956060025292229.546416666666671.042910693397231.01616502655658
99.4519.582866072868579.5128751.007357509992360.986239391027084
109.79.691152200497089.521833333333331.017782170852651.00091297704544
119.0818.99832221697259.531958333333330.944016108998851.00918813319127
129.0849.43670205180459.529958333333330.9902144082621390.962624437025956
139.7439.69395330839729.538251.016324095971191.00505951390959
148.5878.80960170398879.5358750.923837791916180.974731921888374
159.7319.74052610407089.519291666666671.023240640706370.999022013393423
169.5639.352562219516839.512541666666670.9831822605612941.02250054857096
179.9989.51399046779.512166666666661.000191733502711.05087345146531
189.4379.461101850122979.512291666666670.9946185610852240.997452532431763
1910.03810.03895142325209.503666666666671.056324024753810.999905226829788
209.9189.905261583601339.497708333333341.042910693397231.00128602523933
219.2529.56796557636669.498083333333331.007357509992360.966976723124187
229.7379.636446408813759.468083333333331.017782170852651.01043471700255
239.0358.88566962796539.4126250.944016108998851.01680575334072
249.1339.265931325312969.35750.9902144082621390.98565375452872
259.4879.480652288755259.3283751.016324095971191.00066954372457
268.78.603239437219439.31250.923837791916181.01124699172755
279.6279.519378220598139.303166666666671.023240640706371.01130554715948
288.9479.144004682495269.300416666666660.9831822605612940.978455316971524
299.2839.280237324649319.278458333333331.000191733502711.00029769447203
308.8299.2155139504159.2653750.9946185610852240.958058340262444
319.9479.794324384519419.272083333333331.056324024753811.01558817224003
329.6289.666782671711169.269041666666671.042910693397230.995988047623678
339.3189.312264661746879.244251.007357509992361.00061589081297
349.6059.41206784773129.2476251.017782170852651.02049838094987
358.648.744185213629099.262750.944016108998850.98808520049796
369.2149.184032341962959.274791666666670.9902144082621391.00326301747655
379.5679.454651330633329.302791666666671.016324095971191.01188289926702
388.5478.595386815988149.3040.923837791916180.994370606346868
399.1859.52632772994969.309958333333331.023240640706370.964170062208074
409.479.159981394229399.316666666666670.9831822605612941.03384489470316
419.1239.31524403532199.313458333333331.000191733502710.979362426298984
429.2789.281448872526959.331666666666670.9946185610852240.999628412268998
4310.179.877421874466719.350751.056324024753811.02962089999311
449.4349.77772229672139.375416666666671.042910693397230.964846383821255
459.6559.484648715644319.4153751.007357509992361.01796073734125
469.4299.592257699562569.424666666666671.017782170852650.982980263387836
478.7398.884528941833599.411416666666670.944016108998850.983619959731534
489.5529.338134459248749.430416666666670.9902144082621391.02290238394880
499.6879.61196983132229.457583333333331.016324095971191.00780590971408
509.0198.76856790873119.491458333333330.923837791916181.02856020434301
519.6729.749522094703679.528083333333331.023240640706370.992048626183864
529.2069.385662688955729.546208333333330.9831822605612940.980857751348007
539.0699.580669916600189.578833333333331.000191733502710.946593513704754
549.7889.566655744918149.618416666666660.9946185610852241.02313705656226
5510.31210.17812211351339.635416666666671.056324024753811.01315349580145
5610.10510.05079107994259.637251.042910693397231.00539349784772
579.8639.731157492985369.660083333333331.007357509992361.01354849175031
589.6569.875031512697799.70251.017782170852650.97781966443184
599.2959.206359766993119.752333333333330.944016108998851.00962815219591
609.9469.689949386717549.785708333333330.9902144082621391.02642434991801
619.7019.9364312989619.776833333333331.016324095971190.976306252025754
629.0499.032593051012479.777250.923837791916181.00181641627104
6310.1910.02741719870889.799666666666671.023240640706371.01621382635920
649.7069.662141733811079.827416666666670.9831822605612941.00453918679701
659.7659.847095989611979.845208333333331.000191733502710.991662923800218
669.8939.785803367877259.838750.9946185610852241.01095430064277
679.99410.40479164382519.851.056324024753810.960518993759106
6810.43310.29274636081069.869251.042910693397231.01362645442458
6910.0739.953909422382429.881208333333341.007357509992361.01196420145735
7010.11210.06510233310459.889251.017782170852651.00465943269561
719.2669.359801718709969.9148750.944016108998850.989978236555753
729.829.855108898228939.95250.9902144082621390.9964374926151
7310.09710.14181346002189.978916666666661.016324095971190.995581316872127
749.1159.2389938110230810.00066666666670.923837791916180.986579294936301
7510.41110.261739305430610.02866666666671.023240640706371.01454536020910
769.6789.9047419566045610.07416666666670.9831822605612940.977107737122483
7710.40810.119439863713610.11751.000191733502711.02851542577184
7810.15310.071673319309210.12616666666670.9946185610852241.00807479334491
7910.368NANA1.05632402475381NA
8010.581NANA1.04291069339723NA
8110.597NANA1.00735750999236NA
8210.68NANA1.01778217085265NA
839.738NANA0.94401610899885NA
849.556NANA0.990214408262139NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244296977sg4kt37ezzi1evn/1atd31244296843.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244296977sg4kt37ezzi1evn/1atd31244296843.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244296977sg4kt37ezzi1evn/20b391244296843.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244296977sg4kt37ezzi1evn/20b391244296843.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244296977sg4kt37ezzi1evn/33u491244296843.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244296977sg4kt37ezzi1evn/33u491244296843.ps (open in new window)


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