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(2756.76,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.10,4138.52,4199.75,4290.89,4443.91,4502.64,4356.98,4591.27,4696.96,4621.40,4562.84,4202.52,4296.49,4435.23,4105.18,4116.68,3844.49,3720.98,3674.40,3857.62,3801.06,3504.37,3032.60,3047.03,2962.34,2197.82,2014.45,1862.83,1905.41,1810.99,1670.07,1864.44,2052.02,2029.60,2070.83,2293.41) > 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] 59 > (np <- floor(n / par1)) [1] 4 > 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 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 2756.76 3295.32 4138.52 4435.23 2197.82 [2,] 2849.27 3363.99 4199.75 4105.18 2014.45 [3,] 2921.44 3494.17 4290.89 4116.68 1862.83 [4,] 2981.85 3667.03 4443.91 3844.49 1905.41 [5,] 3080.58 3813.06 4502.64 3720.98 1810.99 [6,] 3106.22 3917.96 4356.98 3674.40 1670.07 [7,] 3119.31 3895.51 4591.27 3857.62 1864.44 [8,] 3061.26 3801.06 4696.96 3801.06 2052.02 [9,] 3097.31 3570.12 4621.40 3504.37 2029.60 [10,] 3161.69 3701.61 4562.84 3032.60 2070.83 [11,] 3257.16 3862.27 4202.52 3047.03 2293.41 [12,] 3277.01 3970.10 4296.49 2962.34 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 92.51 68.67 61.23 -330.05 -183.37 [2,] 72.17 130.18 91.14 11.50 -151.62 [3,] 60.41 172.86 153.02 -272.19 42.58 [4,] 98.73 146.03 58.73 -123.51 -94.42 [5,] 25.64 104.90 -145.66 -46.58 -140.92 [6,] 13.09 -22.45 234.29 183.22 194.37 [7,] -58.05 -94.45 105.69 -56.56 187.58 [8,] 36.05 -230.94 -75.56 -296.69 -22.42 [9,] 64.38 131.49 -58.56 -471.77 41.23 [10,] 95.47 160.66 -360.32 14.43 222.58 [11,] 19.85 107.83 93.97 -84.69 NA [12,] 18.31 168.42 138.74 -764.52 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/1tqiy1258156129.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/2qm0a1258156129.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/3c2ci1258156129.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/4ydcr1258156129.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,] 2197.82 2014.45 1862.83 1905.41 3080.58 3106.22 3119.31 2052.02 3097.31 [2,] 2756.76 2849.27 2921.44 2981.85 3080.58 3106.22 3119.31 3061.26 3097.31 [3,] 3295.32 3363.99 3494.17 3667.03 3720.98 3674.40 3857.62 3801.06 3504.37 [4,] 4138.52 4105.18 4116.68 3844.49 3813.06 3917.96 3895.51 3801.06 3570.12 [5,] 4435.23 4199.75 4290.89 4443.91 4502.64 4356.98 4591.27 4696.96 3570.12 [,10] [,11] [,12] [1,] 2070.83 2293.41 2962.340 [2,] 3032.60 3047.03 3119.675 [3,] 3161.69 3257.16 3623.555 [4,] 3701.61 3862.27 4133.295 [5,] 4562.84 4202.52 4296.490 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2318.972 2476.567 2649.616 3057.491 3203.411 3100.827 3309.159 3278.319 [2,] 4271.668 4251.413 4338.724 4276.569 4238.549 4247.973 4406.081 4323.801 [,9] [,10] [,11] [,12] [1,] 3170.284 2688.969 2681.113 2822.795 [2,] 3838.456 3634.411 3833.207 4424.315 $out [1] 1810.99 1670.07 1864.44 4621.40 2029.60 $group [1] 5 6 7 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2197.82, 2756.76, 3295.32, 4138.52, 4435.23, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gesi1258156129.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,] -330.05 11.50 42.58 -123.51 -145.66 -22.45 -94.45 -296.69 -58.56 14.43 [2,] -183.37 11.50 42.58 -94.42 -140.92 13.09 -58.05 -230.94 -58.56 14.43 [3,] 61.23 72.17 60.41 58.73 -46.58 183.22 -56.56 -75.56 41.23 95.47 [4,] 68.67 91.14 153.02 98.73 25.64 194.37 105.69 -22.42 64.38 160.66 [5,] 92.51 130.18 172.86 146.03 104.90 234.29 187.58 36.05 131.49 222.58 [,11] [,12] [1,] -84.69 -764.520 [2,] -32.42 -373.105 [3,] 56.91 78.525 [4,] 100.90 153.580 [5,] 107.83 168.420 $n [1] 5 5 5 5 5 5 5 5 5 5 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -116.8608 15.89658 -17.62663 -77.7493 -164.27088 55.12801 -172.25827 [2,] 239.3208 128.44342 138.44663 195.2093 71.11088 311.31199 59.13827 [,8] [,9] [,10] [,11] [,12] [1,] -222.8997 -45.63909 -7.85575 -48.4128 -337.5562 [2,] 71.7797 128.09909 198.79575 162.2328 494.6062 $out [1] -151.62 -272.19 -471.77 -360.32 $group [1] 2 3 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-330.049999999999, -183.37, 61.2299999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/68zu61258156129.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] [1,] 2756.760 3295.320 4138.520 2962.34 1670.070 [2,] 2951.645 3532.145 4246.705 3275.70 1863.635 [3,] 3088.945 3751.335 4400.445 3761.02 2014.450 [4,] 3140.500 3878.890 4577.055 3981.40 2061.425 [5,] 3277.010 3970.100 4696.960 4435.23 2293.410 $n [1] 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] 3002.807 3593.182 4249.77 3439.145 1920.225 [2,] 3175.083 3909.488 4551.12 4082.895 2108.675 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(2756.76, 2951.645, 3088.945, 3140.5, 3277.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7wllw1258156129.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 3333.715 [2,] 3334.840 3329.655 3422.165 [3,] 3364.645 3563.963 3451.145 [4,] 3425.640 3697.690 3509.750 [5,] 3482.472 3857.620 3625.020 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3323.231 3396.099 3411.197 [2,] 3406.059 3731.826 3491.093 $out [1] 3626.485 $group [1] 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3305.914, 3334.84, 3364.645, 3425.64, 3482.472, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1tqiy1258156129.ps tmp/1tqiy1258156129.png") > system("convert tmp/2qm0a1258156129.ps tmp/2qm0a1258156129.png") > system("convert tmp/3c2ci1258156129.ps tmp/3c2ci1258156129.png") > system("convert tmp/4ydcr1258156129.ps tmp/4ydcr1258156129.png") > system("convert tmp/5gesi1258156129.ps tmp/5gesi1258156129.png") > system("convert tmp/68zu61258156129.ps tmp/68zu61258156129.png") > system("convert tmp/7wllw1258156129.ps tmp/7wllw1258156129.png") > > > proc.time() user system elapsed 1.245 0.991 1.581