R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(2849.27,2921.44,2981.85,3080.58,3106.22,3119.31,3061.26,3097.31,3161.69,3257.16,3277.01,3295.32,3363.99,3494.17,3667.03,3813.06,3917.96,3895.51,3801.06,3570.12,3701.61,3862.27,3970.1,4138.52,4199.75,4290.89,4443.91,4502.64,4356.98,4591.27,4696.96,4621.4,4562.84,4202.52,4296.49,4435.23,4105.18,4116.68,3844.49,3720.98,3674.4,3857.62,3801.06,3504.37,3032.6,3047.03,2962.34,2197.82,2014.45,1862.83,1905.41,1810.99,1670.07,1864.44,2052.02,2029.6,2070.83,2293.41,2443.27,2513.17) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2849.27 3363.99 4199.75 4105.18 2014.45 NA [2,] 2921.44 3494.17 4290.89 4116.68 1862.83 NA [3,] 2981.85 3667.03 4443.91 3844.49 1905.41 NA [4,] 3080.58 3813.06 4502.64 3720.98 1810.99 NA [5,] 3106.22 3917.96 4356.98 3674.40 1670.07 NA [6,] 3119.31 3895.51 4591.27 3857.62 1864.44 NA [7,] 3061.26 3801.06 4696.96 3801.06 2052.02 NA [8,] 3097.31 3570.12 4621.40 3504.37 2029.60 NA [9,] 3161.69 3701.61 4562.84 3032.60 2070.83 NA [10,] 3257.16 3862.27 4202.52 3047.03 2293.41 NA [11,] 3277.01 3970.10 4296.49 2962.34 2443.27 NA [12,] 3295.32 4138.52 4435.23 2197.82 2513.17 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 72.17 130.18 91.14 11.50 -151.62 NA [2,] 60.41 172.86 153.02 -272.19 42.58 NA [3,] 98.73 146.03 58.73 -123.51 -94.42 NA [4,] 25.64 104.90 -145.66 -46.58 -140.92 NA [5,] 13.09 -22.45 234.29 183.22 194.37 NA [6,] -58.05 -94.45 105.69 -56.56 187.58 NA [7,] 36.05 -230.94 -75.56 -296.69 -22.42 NA [8,] 64.38 131.49 -58.56 -471.77 41.23 NA [9,] 95.47 160.66 -360.32 14.43 222.58 NA [10,] 19.85 107.83 93.97 -84.69 149.86 NA [11,] 18.31 168.42 138.74 -764.52 69.90 NA [12,] 68.67 61.23 -330.05 -183.37 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/10e5h1259510212.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/23oxc1259510212.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/38psj1259510212.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/48gv61259510212.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,] 2014.45 1862.83 1905.41 3080.58 3106.22 3119.31 2052.02 3097.31 2070.83 [2,] 2849.27 2921.44 2981.85 3080.58 3106.22 3119.31 3061.26 3097.31 3032.60 [3,] 3363.99 3494.17 3667.03 3720.98 3674.40 3857.62 3801.06 3504.37 3161.69 [4,] 4105.18 4116.68 3844.49 3813.06 3917.96 3895.51 3801.06 3570.12 3701.61 [5,] 4199.75 4290.89 4443.91 4502.64 4356.98 4591.27 4696.96 3570.12 4562.84 [,10] [,11] [,12] [1,] 2293.41 2443.27 2197.82 [2,] 3047.03 2962.34 2513.17 [3,] 3257.16 3277.01 3295.32 [4,] 3862.27 3970.10 4138.52 [5,] 4202.52 4296.49 4435.23 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2476.567 2649.616 3057.491 3203.411 3100.827 3309.159 3278.319 3170.284 [2,] 4251.413 4338.724 4276.569 4238.549 4247.973 4406.081 4323.801 3838.456 [,9] [,10] [,11] [,12] [1,] 2688.969 2681.113 2564.929 2146.852 [2,] 3634.411 3833.207 3989.091 4443.788 $out [1] 1810.99 1670.07 1864.44 4621.40 2029.60 $group [1] 4 5 6 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2014.45, 2849.27, 3363.99, 4105.18, 4199.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5q7pe1259510212.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,] 11.50 42.58 -123.51 -145.66 -22.45 -94.45 -296.69 -58.56 14.43 -84.69 [2,] 11.50 42.58 -94.42 -140.92 13.09 -58.05 -230.94 -58.56 14.43 19.85 [3,] 72.17 60.41 58.73 -46.58 183.22 -56.56 -75.56 41.23 95.47 93.97 [4,] 91.14 153.02 98.73 25.64 194.37 105.69 -22.42 64.38 160.66 107.83 [5,] 130.18 172.86 146.03 104.90 234.29 187.58 36.05 131.49 222.58 149.86 [,11] [,12] [1,] 18.31 -330.05 [2,] 18.31 -256.71 [3,] 69.90 -61.07 [4,] 138.74 64.95 [5,] 168.42 68.67 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 15.89658 -17.62663 -77.7493 -164.27088 55.12801 -172.25827 -222.8997 [2,] 128.44342 138.44663 195.2093 71.11088 311.31199 59.13827 71.7797 [,8] [,9] [,10] [,11] [,12] [1,] -45.63909 -7.85575 31.80355 -15.19553 -315.1814 [2,] 128.09909 198.79575 156.13645 154.99553 193.0414 $out [1] -151.62 -272.19 -471.77 -360.32 -764.52 $group [1] 1 2 8 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.5, 11.5, 72.1700, 91.1400000000003, 130.180000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6utqz1259510212.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] [1,] 2849.270 3363.990 4199.750 2197.820 1670.070 NA [2,] 3021.555 3618.575 4293.690 3039.815 1863.635 NA [3,] 3101.765 3807.060 4439.570 3697.690 2022.025 NA [4,] 3209.425 3906.735 4577.055 3851.055 2182.120 NA [5,] 3295.320 4138.520 4696.960 4116.680 2513.170 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3016.076 3675.628 4310.325 3327.678 1876.762 NA [2,] 3187.454 3938.492 4568.815 4067.702 2167.288 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(2849.27, 3021.555, 3101.765, 3209.425, 3295.32, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7tak41259510212.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,] 3305.914 3161.690 3325.845 [2,] 3324.245 3286.165 3390.137 [3,] 3354.843 3499.270 3450.735 [4,] 3387.746 3697.690 3492.318 [5,] 3482.472 3857.620 3519.060 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3325.880 3311.571 3404.13 [2,] 3383.806 3686.969 3497.34 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3305.914, 3324.245, 3354.843, 3387.746, 3482.472, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10e5h1259510212.ps tmp/10e5h1259510212.png") > system("convert tmp/23oxc1259510212.ps tmp/23oxc1259510212.png") > system("convert tmp/38psj1259510212.ps tmp/38psj1259510212.png") > system("convert tmp/48gv61259510212.ps tmp/48gv61259510212.png") > system("convert tmp/5q7pe1259510212.ps tmp/5q7pe1259510212.png") > system("convert tmp/6utqz1259510212.ps tmp/6utqz1259510212.png") > system("convert tmp/7tak41259510212.ps tmp/7tak41259510212.png") > > > proc.time() user system elapsed 1.181 0.927 1.821