R version 2.7.2 (2008-08-25) 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(1995.37,1946.81,1765.9,1635.25,1833.42,1910.43,1959.67,1969.6,2061.41,2093.48,2120.88,2174.56,2196.72,2350.44,2440.25,2408.64,2472.81,2407.6,2454.62,2448.05,2497.84,2645.64,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.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) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1995.37 2196.72 2921.44 3494.17 4290.89 4116.68 [2,] 1946.81 2350.44 2981.85 3667.03 4443.91 NA [3,] 1765.90 2440.25 3080.58 3813.06 4502.64 NA [4,] 1635.25 2408.64 3106.22 3917.96 4356.98 NA [5,] 1833.42 2472.81 3119.31 3895.51 4591.27 NA [6,] 1910.43 2407.60 3061.26 3801.06 4696.96 NA [7,] 1959.67 2454.62 3097.31 3570.12 4621.40 NA [8,] 1969.60 2448.05 3161.69 3701.61 4562.84 NA [9,] 2061.41 2497.84 3257.16 3862.27 4202.52 NA [10,] 2093.48 2645.64 3277.01 3970.10 4296.49 NA [11,] 2120.88 2756.76 3295.32 4138.52 4435.23 NA [12,] 2174.56 2849.27 3363.99 4199.75 4105.18 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -48.56 153.72 60.41 172.86 153.02 NA [2,] -180.91 89.81 98.73 146.03 58.73 NA [3,] -130.65 -31.61 25.64 104.90 -145.66 NA [4,] 198.17 64.17 13.09 -22.45 234.29 NA [5,] 77.01 -65.21 -58.05 -94.45 105.69 NA [6,] 49.24 47.02 36.05 -230.94 -75.56 NA [7,] 9.93 -6.57 64.38 131.49 -58.56 NA [8,] 91.81 49.79 95.47 160.66 -360.32 NA [9,] 32.07 147.80 19.85 107.83 93.97 NA [10,] 27.40 111.12 18.31 168.42 138.74 NA [11,] 53.68 92.51 68.67 61.23 -330.05 NA [12,] 22.16 72.17 130.18 91.14 11.50 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/1qfdo1225388627.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/2nfgq1225388627.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/3qwvh1225388627.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/4scd41225388627.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,] 1995.370 1946.81 1765.90 1635.25 1833.42 1910.43 1959.67 1969.60 2061.41 [2,] 2196.720 2350.44 2440.25 2408.64 2472.81 2407.60 2454.62 2448.05 2497.84 [3,] 3207.805 2981.85 3080.58 3106.22 3119.31 3061.26 3097.31 3161.69 3257.16 [4,] 4116.680 3667.03 3813.06 3917.96 3895.51 3801.06 3570.12 3701.61 3862.27 [5,] 4290.890 4443.91 4502.64 4356.98 4591.27 4696.96 4621.40 4562.84 4202.52 [,10] [,11] [,12] [1,] 2093.48 2120.88 2174.56 [2,] 2645.64 2756.76 2849.27 [3,] 3277.01 3295.32 3363.99 [4,] 3970.10 4138.52 4105.18 [5,] 4296.49 4435.23 4199.75 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1969.369 2051.551 2110.556 2039.738 2114.034 2076.645 2309.101 2275.928 [2,] 4446.241 3912.149 4050.604 4172.702 4124.586 4045.875 3885.519 4047.452 [,9] [,10] [,11] [,12] [1,] 2293.057 2341.15 2318.972 2476.567 [2,] 4221.263 4212.87 4271.668 4251.413 $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(1995.37, 2196.72, 3207.805, 4116.68, 4290.89, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53ua21225388627.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,] -48.56 58.73 -145.66 -22.45 -94.45 -230.94 -58.56 49.79 19.85 18.31 [2,] 60.41 58.73 -130.65 13.09 -65.21 -75.56 -6.57 49.79 32.07 27.40 [3,] 153.02 89.81 -31.61 64.17 -58.05 36.05 9.93 91.81 93.97 111.12 [4,] 153.72 98.73 25.64 198.17 77.01 47.02 64.38 95.47 107.83 138.74 [5,] 172.86 146.03 104.90 234.29 105.69 49.24 131.49 160.66 147.80 168.42 [,11] [,12] [1,] 53.68 11.50 [2,] 53.68 22.16 [3,] 61.23 72.17 [4,] 68.67 91.14 [5,] 68.67 130.18 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 87.08739 61.5461 -142.04412 -66.60706 -158.54229 -50.56472 -40.20309 [2,] 218.95261 118.0739 78.82412 194.94706 42.44229 122.66472 60.06309 [,8] [,9] [,10] [,11] [,12] [1,] 59.53263 40.43817 32.44744 50.6381 23.42891 [2,] 124.08737 147.50183 189.79256 71.8219 120.91109 $out [1] -180.91 -360.32 92.51 -330.05 $group [1] 2 8 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-48.5599999999999, 60.4099999999999, 153.020000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sko11225388627.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,] 1635.250 2196.720 2921.440 3494.170 4105.180 4116.68 [2,] 1871.925 2408.120 3070.920 3684.320 4293.690 4116.68 [3,] 1964.635 2451.335 3112.765 3837.665 4439.570 4116.68 [4,] 2077.445 2571.740 3267.085 3944.030 4577.055 4116.68 [5,] 2174.560 2756.760 3363.990 4199.750 4696.960 4116.68 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1870.896 2376.707 3023.293 3719.210 4310.325 4116.68 [2,] 2058.374 2525.963 3202.237 3956.120 4568.815 4116.68 $out [1] 2849.27 $group [1] 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1635.25, 1871.925, 1964.635, 2077.445, 2174.56, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/74g881225388627.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,] 3078.008 2981.850 3008.735 [2,] 3130.555 3088.945 3089.580 [3,] 3172.337 3140.500 3166.388 [4,] 3219.504 3267.085 3246.015 [5,] 3349.342 3363.990 3477.225 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3131.767 3059.249 3095.037 [2,] 3212.907 3221.751 3237.739 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3078.008, 3130.555, 3172.33683333333, 3219.504, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qfdo1225388627.ps tmp/1qfdo1225388627.png") > system("convert tmp/2nfgq1225388627.ps tmp/2nfgq1225388627.png") > system("convert tmp/3qwvh1225388627.ps tmp/3qwvh1225388627.png") > system("convert tmp/4scd41225388627.ps tmp/4scd41225388627.png") > system("convert tmp/53ua21225388627.ps tmp/53ua21225388627.png") > system("convert tmp/6sko11225388627.ps tmp/6sko11225388627.png") > system("convert tmp/74g881225388627.ps tmp/74g881225388627.png") > > > proc.time() user system elapsed 1.452 0.990 3.691