Home » date » 2009 » Dec » 04 »

*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 12:49:12 -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/t1259956186egg2wzb4zm0r0zj.htm/, Retrieved Fri, 04 Dec 2009 20:49:51 +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/t1259956186egg2wzb4zm0r0zj.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 «
5560 3922 3759 4138 4634 3996 4308 4143 4429 5219 4929 5755 5592 4163 4962 5208 4755 4491 5732 5731 5040 6102 4904 5369 5578 4619 4731 5011 5299 4146 4625 4736 4219 5116 4205 4121 5103 4300 4578 3809 5526 4247 3830 4394 4826 4409 4569 4106 4794 3914 3793 4405 4022 4100 4788 3163 3585 3903 4178 3863 4187
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
15560NANA1.11501954360955NA
23922NANA0.902031790995203NA
33759NANA0.959668441272228NA
44138NANA0.984943407225544NA
54634NANA1.05574264506044NA
63996NANA0.922140070528212NA
743084721.988213778134567.333333333331.033861088989520.912327563086632
841434632.071446636634578.708333333331.011654621657120.894416255821843
944294495.042641653244638.8750.9689941293208470.985307671824676
1052195026.319805001374733.583333333331.061842467123511.03833424900797
1149294802.98728458544783.208333333331.004135080446781.02623632084537
1257554712.537430685774808.8750.9799667137710521.22121045925836
1355925451.144712116494888.833333333331.115019543609551.02583957963369
1441634523.088077313625014.333333333330.9020317909952030.920388886716643
1549624900.027074950955105.958333333330.9596684412722281.01264746584072
1652085090.392725084785168.208333333330.9849434072255441.02310377239376
1747555494.040735617635203.958333333331.055742645060440.865483207864394
1844914782.986855818085186.833333333330.9221400705282120.93895302984935
1957325345.234140257315170.166666666671.033861088989521.07235714088365
2057315249.054309019765188.583333333331.011654621657121.09181571814795
2150405036.791109454375197.958333333330.9689941293208471.00063709025764
2261025500.476710008155180.1251.061842467123511.10935839231850
2349045216.063353304195194.583333333331.004135080446780.940172629784776
2453695098.644315911575202.8750.9799667137710521.05302501357954
2555785733.848625569165142.3751.115019543609550.972819543077197
2646194559.582780190965054.791666666670.9020317909952031.01303128436820
2747314778.309127649584979.1250.9596684412722280.990099190658086
2850114829.998311799534903.833333333330.9849434072255441.03747448270495
2952995103.064042730254833.6251.055742645060441.03839574726656
3041464382.470685185334752.50.9221400705282120.946041696072332
3146254839.202214742324680.708333333331.033861088989520.9557360479606
3247364701.791310979164647.6251.011654621657121.00727567149587
3342194484.464455741494627.958333333330.9689941293208470.940803532202911
3451164854.21283845514571.51.061842467123511.05392988940885
3542054549.610532619324530.8751.004135080446780.924254937835102
3641214453.499562678954544.541666666670.9799667137710520.925339711388914
3751035035.010126611874515.6251.115019543609551.01350342336528
3843004030.503550114324468.250.9020317909952031.06686421349959
3945784298.634851753684479.291666666670.9596684412722281.06498927168293
4038094407.744865260214475.1250.9849434072255440.864160725367922
4155264709.491982507094460.833333333331.055742645060441.17337496709321
4242474126.92261814024475.3750.9221400705282121.02909610694710
4338304612.958946435114461.8751.033861088989520.83026969120543
4443944484.58063325424432.916666666671.011654621657120.979801760596627
4548264248.191387208764384.1250.9689941293208471.13601284879279
4644094646.888096749244376.251.061842467123510.94880700981036
4745694356.3563685954338.416666666671.004135080446781.04881226727408
4841064184.090380284734269.6250.9799667137710520.981336354335774
4947944798.393687628404303.416666666671.115019543609550.999084341987252
5039143871.558031609374292.041666666670.9020317909952031.01096250347899
5137934020.091086674424189.041666666670.9596684412722280.943510959881689
5244054054.273299992154116.250.9849434072255441.08650790759679
5340224306.242281370884078.8751.055742645060440.933992965839257
5441003736.934213312644052.458333333330.9221400705282121.09715605519464
5547884153.063072016274017.041666666671.033861088989521.15288400801375
563163NANA1.01165462165712NA
573585NANA0.968994129320847NA
583903NANA1.06184246712351NA
594178NANA1.00413508044678NA
603863NANA0.979966713771052NA
614187NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956186egg2wzb4zm0r0zj/12v201259956149.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956186egg2wzb4zm0r0zj/12v201259956149.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956186egg2wzb4zm0r0zj/27ki51259956149.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956186egg2wzb4zm0r0zj/27ki51259956149.ps (open in new window)


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


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