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(2953,2635,2404,2413,2136,1565,1451,2037,2477,2785,2994,2681,3098,2708,2517,2445,2087,1801,1216,2173,2286,3121,3458,3511,3524,2767,2744,2603,2527,1846,1066,2327,3066,3048,3806,4042,3583,3438,2957,2885,2744,1837,1447,2504,3248,3098,4318,3561,3316,3379,2717,2354,2445,1542,1606,2590,3588,3202,4704,4005,3810,3488,2781,2944,2817,1960,1937,2903,3357,3552,4581,3905,4581,4037,3345,3175,2808,2050,1719,3143,3756,4776,4540,4309,4563,3506,3665,3361,3094,2440,1633,2935,4159,4159,4894,4921,4577,4155,3851,3429,3370,2726) > 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] 102 > (np <- floor(n / par1)) [1] 8 > 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] 9 9 9 9 9 9 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 2953 3098 3524 3583 3316 3810 4581 4563 4577 [2,] 2635 2708 2767 3438 3379 3488 4037 3506 4155 [3,] 2404 2517 2744 2957 2717 2781 3345 3665 3851 [4,] 2413 2445 2603 2885 2354 2944 3175 3361 3429 [5,] 2136 2087 2527 2744 2445 2817 2808 3094 3370 [6,] 1565 1801 1846 1837 1542 1960 2050 2440 2726 [7,] 1451 1216 1066 1447 1606 1937 1719 1633 NA [8,] 2037 2173 2327 2504 2590 2903 3143 2935 NA [9,] 2477 2286 3066 3248 3588 3357 3756 4159 NA [10,] 2785 3121 3048 3098 3202 3552 4776 4159 NA [11,] 2994 3458 3806 4318 4704 4581 4540 4894 NA [12,] 2681 3511 4042 3561 4005 3905 4309 4921 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -318 -390 -757 -145 63 -322 -544 -1057 -422 [2,] -231 -191 -23 -481 -662 -707 -692 159 -304 [3,] 9 -72 -141 -72 -363 163 -170 -304 -422 [4,] -277 -358 -76 -141 91 -127 -367 -267 -59 [5,] -571 -286 -681 -907 -903 -857 -758 -654 -644 [6,] -114 -585 -780 -390 64 -23 -331 -807 NA [7,] 586 957 1261 1057 984 966 1424 1302 NA [8,] 440 113 739 744 998 454 613 1224 NA [9,] 308 835 -18 -150 -386 195 1020 0 NA [10,] 209 337 758 1220 1502 1029 -236 735 NA [11,] -313 53 236 -757 -699 -676 -231 27 NA [12,] 417 13 -459 -245 -195 676 254 -344 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/14igv1272387947.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/24igv1272387947.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/34igv1272387947.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/4xrfg1272387947.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] [,10] [,11] [,12] [1,] 2953 2635 2404 2354 2087 1542 1066.0 2037 2286.0 2785.0 2994.0 2681.0 [2,] 3316 2767 2717 2445 2445 1801 1331.5 2250 2771.5 3073.0 3632.0 3536.0 [3,] 3583 3438 2781 2885 2744 1846 1528.5 2547 3302.5 3161.5 4429.0 3955.0 [4,] 4563 3506 3345 3175 2817 2050 1676.0 2919 3672.0 3855.5 4642.5 4175.5 [5,] 4581 4155 3851 3429 3370 2050 1937.0 3143 4159.0 4776.0 4894.0 4921.0 $n [1] 9 9 9 9 9 9 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2926.247 3048.793 2450.253 2500.533 2548.08 1714.86 1336.057 2173.287 [2,] 4239.753 3827.207 3111.747 3269.467 2939.92 1977.14 1720.943 2920.713 [,9] [,10] [,11] [,12] [1,] 2799.468 2724.384 3864.52 3597.766 [2,] 3805.532 3598.616 4993.48 4312.234 $out [1] 2440 2726 $group [1] 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2953, 3316, 3583, 4563, 4581, 2635, 2767, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xrfg1272387947.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] [,11] [,12] [1,] -757 -707 -422 -367 -907 -807.0 586.0 113 -386.0 -236.0 -757.0 -459.0 [2,] -544 -662 -304 -277 -857 -682.5 961.5 447 -84.0 273.0 -687.5 -294.5 [3,] -390 -304 -141 -141 -681 -360.5 1020.5 676 97.5 746.5 -272.0 -91.0 [4,] -318 -191 -72 -76 -644 -68.5 1281.5 871 571.5 1124.5 40.0 335.5 [5,] -145 159 163 91 -571 64.0 1424.0 1224 1020.0 1502.0 236.0 676.0 $n [1] 9 9 9 9 9 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -509.0267 -552.06 -263.18667 -246.86 -793.18 -703.48922 841.7434 439.1475 [2,] -270.9733 -55.94 -18.81333 -35.14 -568.82 -17.51078 1199.2566 912.8525 [,9] [,10] [,11] [,12] [1,] -268.6717 270.8399 -678.3919 -442.9270 [2,] 463.6717 1222.1601 134.3919 260.9270 $out [1] 63 -1057 -286 $group [1] 1 1 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-757, -544, -390, -318, -145, -707, -662, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/670fj1272387947.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] [,8] [,9] [1,] 1451.0 1216.0 1846.0 1447.0 1542.0 1937.0 1719.0 1633.0 2726 [2,] 2086.5 2130.0 2427.0 2624.0 2399.5 2799.0 2975.5 3014.5 3370 [3,] 2445.0 2481.0 2755.5 3027.5 2959.5 3150.5 3550.5 3585.5 3640 [4,] 2733.0 3109.5 3295.0 3499.5 3483.5 3681.0 4424.5 4361.0 4155 [5,] 2994.0 3511.0 4042.0 4318.0 4704.0 4581.0 4776.0 4921.0 4577 $n [1] 12 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2150.127 2034.243 2359.599 2628.179 2465.080 2748.214 2889.601 2971.352 [2,] 2739.873 2927.757 3151.401 3426.821 3453.920 3552.786 4211.399 4199.648 [,9] [1,] 3133.650 [2,] 4146.350 $out [1] 1066 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(1451, 2086.5, 2445, 2733, 2994, 1216, 2130, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/770fj1272387947.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,] 1509.375 1528.50 1521.875 [2,] 2623.139 2645.50 2615.375 [3,] 3120.007 3023.25 3083.750 [4,] 3622.979 3510.50 3611.625 [5,] 4161.875 4429.00 4165.375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2663.973 2628.718 2629.354 [2,] 3576.041 3417.782 3538.146 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1509.375, 2623.13888888889, 3120.00694444444, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/14igv1272387947.ps tmp/14igv1272387947.png",intern=TRUE)) character(0) > try(system("convert tmp/24igv1272387947.ps tmp/24igv1272387947.png",intern=TRUE)) character(0) > try(system("convert tmp/34igv1272387947.ps tmp/34igv1272387947.png",intern=TRUE)) character(0) > try(system("convert tmp/4xrfg1272387947.ps tmp/4xrfg1272387947.png",intern=TRUE)) character(0) > try(system("convert tmp/5xrfg1272387947.ps tmp/5xrfg1272387947.png",intern=TRUE)) character(0) > try(system("convert tmp/670fj1272387947.ps tmp/670fj1272387947.png",intern=TRUE)) character(0) > try(system("convert tmp/770fj1272387947.ps tmp/770fj1272387947.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.177 0.925 3.149