R version 2.8.1 (2008-12-22) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(122.860,117.702,113.537,108.366,111.078,150.739,159.129,157.928,147.768,137.507,136.919,136.151,133.001,125.554,119.647,114.158,116.193,152.803,161.761,160.942,149.470,139.208,134.588,130.322,126.611,122.401,117.352,112.135,112.879,148.729,157.230,157.221,146.681,136.524,132.111,125.326,122.716,116.615,113.719,110.737,112.093,143.565,149.946,149.147,134.339,122.683,115.614,116.566,111.272,104.609,101.802,94.542,93.051,124.129,130.374,123.946,114.971,105.531,104.919,104.782,101.281,94.545,93.248,84.031,87.486,115.867,120.327,117.008,108.811,104.519,106.758,109.337) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 72 > (np <- floor(n / par1)) [1] 6 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 122.860 133.001 126.611 122.716 111.272 101.281 NA [2,] 117.702 125.554 122.401 116.615 104.609 94.545 NA [3,] 113.537 119.647 117.352 113.719 101.802 93.248 NA [4,] 108.366 114.158 112.135 110.737 94.542 84.031 NA [5,] 111.078 116.193 112.879 112.093 93.051 87.486 NA [6,] 150.739 152.803 148.729 143.565 124.129 115.867 NA [7,] 159.129 161.761 157.230 149.946 130.374 120.327 NA [8,] 157.928 160.942 157.221 149.147 123.946 117.008 NA [9,] 147.768 149.470 146.681 134.339 114.971 108.811 NA [10,] 137.507 139.208 136.524 122.683 105.531 104.519 NA [11,] 136.919 134.588 132.111 115.614 104.919 106.758 NA [12,] 136.151 130.322 125.326 116.566 104.782 109.337 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5.158 -7.447 -4.210 -6.101 -6.663 -6.736 NA [2,] -4.165 -5.907 -5.049 -2.896 -2.807 -1.297 NA [3,] -5.171 -5.489 -5.217 -2.982 -7.260 -9.217 NA [4,] 2.712 2.035 0.744 1.356 -1.491 3.455 NA [5,] 39.661 36.610 35.850 31.472 31.078 28.381 NA [6,] 8.390 8.958 8.501 6.381 6.245 4.460 NA [7,] -1.201 -0.819 -0.009 -0.799 -6.428 -3.319 NA [8,] -10.160 -11.472 -10.540 -14.808 -8.975 -8.197 NA [9,] -10.261 -10.262 -10.157 -11.656 -9.440 -4.292 NA [10,] -0.588 -4.620 -4.413 -7.069 -0.612 2.239 NA [11,] -0.768 -4.266 -6.785 0.952 -0.137 2.579 NA [12,] -3.150 -3.711 -2.610 -5.294 -3.501 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/rcomp/tmp/106cd1241728628.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2prst1241728628.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3krgl1241728628.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4xr4v1241728628.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 101.281 94.5450 93.248 84.0310 87.4860 115.867 120.327 117.008 108.811 [2,] 111.272 104.6090 101.802 94.5420 93.0510 124.129 130.374 123.946 114.971 [3,] 122.788 117.1585 113.628 109.5515 111.5855 146.147 153.588 153.184 140.510 [4,] 126.611 122.4010 117.352 112.1350 112.8790 150.739 159.129 157.928 147.768 [5,] 133.001 125.5540 119.647 114.1580 116.1930 152.803 161.761 160.942 149.470 [,10] [,11] [,12] [1,] 104.5190 104.9190 104.782 [2,] 105.5310 106.7580 109.337 [3,] 129.6035 123.8625 120.946 [4,] 137.5070 134.5880 130.322 [5,] 139.2080 136.9190 136.151 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 112.8938 105.6821 103.5977 98.20345 98.7958 128.9827 135.0401 131.2645 [2,] 132.6822 128.6349 123.6583 120.89955 124.3752 163.3113 172.1359 175.1035 [,9] [,10] [,11] [,12] [1,] 119.3549 108.9779 105.9113 107.410 [2,] 161.6651 150.2291 141.8137 134.482 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(101.281, 111.272, 122.788, 126.611, 133.001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mm2e1241728628.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -7.447 -5.9070 -9.217 -1.4910 28.381 4.4600 -6.428 -14.808 -10.262 -7.0690 [2,] -6.736 -5.0490 -7.260 0.7440 31.078 6.2450 -3.319 -11.472 -10.262 -4.6200 [3,] -6.382 -3.5305 -5.353 1.6955 33.661 7.3855 -1.010 -10.350 -10.209 -2.5125 [4,] -5.158 -2.8070 -5.171 2.7120 36.610 8.5010 -0.799 -8.975 -9.440 -0.5880 [5,] -4.210 -1.2970 -2.982 3.4550 39.661 8.9580 -0.009 -8.197 -9.440 2.2390 [,11] [,12] [1,] -6.7850 -3.711 [2,] -4.2660 -3.711 [3,] -0.4525 -3.501 [4,] 0.9520 -3.150 [5,] 2.5790 -2.610 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7.399861 -4.976662 -6.700472 0.4260764 30.09268 5.930307 -2.6354814 [2,] -5.364139 -2.084338 -4.005528 2.9649236 37.22932 8.840693 0.6154814 [,8] [,9] [,10] [,11] [,12] [1,] -11.960646 -10.739217 -5.11327023 -3.818279 -3.897401 [2,] -8.739354 -9.678783 0.08827023 2.913279 -3.104599 $out [1] -11.656 -4.292 -5.294 $group [1] 9 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7.447, -6.736, -6.382, -5.158, -4.21000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ia5o1241728628.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 108.3660 114.1580 112.1350 110.7370 93.0510 84.0310 NA [2,] 115.6195 122.6005 119.8765 114.6665 103.2055 93.8965 NA [3,] 136.5350 133.7945 129.3610 119.6490 105.2250 105.6385 NA [4,] 149.2535 151.1365 147.7050 138.9520 119.4585 112.6020 NA [5,] 159.1290 161.7610 157.2300 149.9460 130.3740 120.3270 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 121.1943 120.7790 116.6682 108.5722 97.8119 97.1068 NA [2,] 151.8757 146.8100 142.0538 130.7258 112.6381 114.1702 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(108.366, 115.6195, 136.535, 149.2535, 159.129, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7lw3b1241728628.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 103.9948 109.5515 104.8918 [2,] 111.7276 115.3932 112.5041 [3,] 121.1161 123.3252 120.7895 [4,] 136.4893 143.3285 136.6334 [5,] 146.4612 153.5880 146.9606 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 109.8221 110.5838 109.7839 [2,] 132.4101 136.0667 131.7951 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(103.994833333333, 111.727583333333, 121.116083333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/106cd1241728628.ps tmp/106cd1241728628.png") > system("convert tmp/2prst1241728628.ps tmp/2prst1241728628.png") > system("convert tmp/3krgl1241728628.ps tmp/3krgl1241728628.png") > system("convert tmp/4xr4v1241728628.ps tmp/4xr4v1241728628.png") > system("convert tmp/5mm2e1241728628.ps tmp/5mm2e1241728628.png") > system("convert tmp/6ia5o1241728628.ps tmp/6ia5o1241728628.png") > system("convert tmp/7lw3b1241728628.ps tmp/7lw3b1241728628.png") > > > proc.time() user system elapsed 1.191 0.938 1.712