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(4930.63,6284.63,13339.63,8935.63,-419.37,1220.63,-5094.37,-5561.37,-2732.37,-316.37,-3929.37,-9291.37,6644.63,2492.63,5997.63,3383.63,-693.37,3945.63,-5128.37,-4368.37,-3414.37,-3313.37,-4619.37,-12400.37,8857.63,6407.63,11407.63,4066.63,3637.63,592.63,-4941.37,-5770.37,-4893.37,-2103.37,-5716.37,-13731.37,8025.63,3452.63,7552.63,2760.63,2001.63,2679.63,-2680.37,-4410.37,-2674.37,1677.63,-3284.37,-10360.37,8467.63,7012.63,6920.63,8835.63,2727.63,3736.63,-2893.37,-5309.37,-2578.37,-580.37,-7526.37,-11589.37,2348.63,991.63,4687.63,3096.63,-2582.37,-339.37,-4070.37,-6127.37,-3062.37,-613.37) > 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] 70 > (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 6 6 6 6 6 6 6 6 6 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4930.63 6644.63 8857.63 8025.63 8467.63 2348.63 [2,] 6284.63 2492.63 6407.63 3452.63 7012.63 991.63 [3,] 13339.63 5997.63 11407.63 7552.63 6920.63 4687.63 [4,] 8935.63 3383.63 4066.63 2760.63 8835.63 3096.63 [5,] -419.37 -693.37 3637.63 2001.63 2727.63 -2582.37 [6,] 1220.63 3945.63 592.63 2679.63 3736.63 -339.37 [7,] -5094.37 -5128.37 -4941.37 -2680.37 -2893.37 -4070.37 [8,] -5561.37 -4368.37 -5770.37 -4410.37 -5309.37 -6127.37 [9,] -2732.37 -3414.37 -4893.37 -2674.37 -2578.37 -3062.37 [10,] -316.37 -3313.37 -2103.37 1677.63 -580.37 -613.37 [11,] -3929.37 -4619.37 -5716.37 -3284.37 -7526.37 NA [12,] -9291.37 -12400.37 -13731.37 -10360.37 -11589.37 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1354 -4152 -2450 -4573 -1455 -1357 [2,] 7055 3505 5000 4100 -92 3696 [3,] -4404 -2614 -7341 -4792 1915 -1591 [4,] -9355 -4077 -429 -759 -6108 -5679 [5,] 1640 4639 -3045 678 1009 2243 [6,] -6315 -9074 -5534 -5360 -6630 -3731 [7,] -467 760 -829 -1730 -2416 -2057 [8,] 2829 954 877 1736 2731 3065 [9,] 2416 101 2790 4352 1998 2449 [10,] -3613 -1306 -3613 -4962 -6946 NA [11,] -5362 -7781 -8015 -7076 -4063 NA [12,] 15936 21258 21757 18828 13938 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/1ibd61262168379.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/2p9bd1262168379.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/3ktjh1262168379.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/44kiz1262168379.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] [1,] 2348.63 991.63 4687.63 2760.63 -2582.37 -339.37 -5128.37 -6127.37 [2,] 4930.63 2492.63 5997.63 3096.63 -693.37 592.63 -5094.37 -5770.37 [3,] 7335.13 4868.63 7236.63 3725.13 791.13 1950.13 -4505.87 -5435.37 [4,] 8467.63 6407.63 11407.63 8835.63 2727.63 3736.63 -2893.37 -4410.37 [5,] 8857.63 7012.63 13339.63 8935.63 3637.63 3945.63 -2680.37 -4368.37 [,9] [,10] [,11] [,12] [1,] -3414.37 -3313.37 -7526.37 -13731.37 [2,] -3414.37 -2103.37 -5716.37 -12400.37 [3,] -2897.37 -596.87 -4619.37 -11589.37 [4,] -2674.37 -316.37 -3929.37 -10360.37 [5,] -2578.37 1677.63 -3284.37 -9291.37 $n [1] 6 6 6 6 6 6 6 6 6 6 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5053.651 2343.329 3747.005 23.28964 -1415.525 -77.85155 -5925.586 [2,] 9616.609 7393.931 10726.255 7426.97036 2997.785 3978.11155 -3086.154 [,8] [,9] [,10] [,11] [,12] [1,] -6312.614 -3374.694 -1749.5427 -5882.06 -13030.83 [2,] -4558.126 -2420.046 555.8027 -3356.68 -10147.91 $out [1] -4893.37 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2348.63, 4930.63, 7335.13, 8467.63, 8857.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/512tt1262168379.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] [1,] -4573.0 3505 -7341 -9355 678.0 -6630.0 -2416.0 877.0 1998.0 -6946 -8015 [2,] -4152.0 3505 -4792 -6108 678.0 -6630.0 -2057.0 954.0 1998.0 -4962 -7781 [3,] -1952.5 3898 -3509 -4878 1324.5 -5924.5 -1279.5 2233.5 2432.5 -3613 -7076 [4,] -1357.0 5000 -1591 -759 2243.0 -5360.0 -467.0 2829.0 2790.0 -3613 -5362 [5,] 1354.0 7055 1915 -429 2243.0 -3731.0 760.0 3065.0 2790.0 -3613 -4063 [,12] [1,] 13938 [2,] 15936 [3,] 18828 [4,] 21258 [5,] 21757 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3755.3653 2933.677 -5573.748 -8328.278 315.0245 -6743.691 -2305.1014 [2,] -149.6347 4862.323 -1444.252 -1427.722 2333.9755 -5105.309 -253.8986 [,8] [,9] [,10] [,11] [,12] [1,] 1024.064 1921.634 -4566.2 -8785.259 15067.49 [2,] 3442.936 2943.366 -2659.8 -5366.741 22588.51 $out [1] -92 4639 -3045 -9074 101 4352 -1306 $group [1] 2 5 5 6 9 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4573, -4152, -1952.5, -1357, 1354, 3505, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ptcx1262168379.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,] -9291.37 -12400.37 -13731.37 -10360.37 -11589.37 -6127.37 [2,] -4511.87 -4493.87 -5328.87 -2982.37 -4101.37 -3062.37 [3,] -367.87 -2003.37 -755.37 1839.63 1073.63 -476.37 [4,] 5607.63 3664.63 5237.13 3106.63 6966.63 2348.63 [5,] 13339.63 6644.63 11407.63 8025.63 8835.63 4687.63 $n [1] 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -4983.442 -5724.517 -5574.594 -937.6038 -3974.559 -3179.921 [2,] 4247.702 1717.777 4063.854 4616.8638 6121.819 2227.181 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(-9291.37, -4511.87, -367.87, 5607.63, 13339.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/78aum1262168379.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,] -11474.570 -11589.37 -11380.370 [2,] -4574.937 -4562.62 -4472.370 [3,] -48.120 97.13 -47.995 [4,] 4810.047 4296.88 4980.318 [5,] 8317.630 7335.13 8336.130 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -4328.674 -3943.747 -4359.429 [2,] 4232.434 4138.007 4263.439 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > try(system("convert tmp/1ibd61262168379.ps tmp/1ibd61262168379.png",intern=TRUE)) character(0) > try(system("convert tmp/2p9bd1262168379.ps tmp/2p9bd1262168379.png",intern=TRUE)) character(0) > try(system("convert tmp/3ktjh1262168379.ps tmp/3ktjh1262168379.png",intern=TRUE)) character(0) > try(system("convert tmp/44kiz1262168379.ps tmp/44kiz1262168379.png",intern=TRUE)) character(0) > try(system("convert tmp/512tt1262168379.ps tmp/512tt1262168379.png",intern=TRUE)) character(0) > try(system("convert tmp/6ptcx1262168379.ps tmp/6ptcx1262168379.png",intern=TRUE)) character(0) > try(system("convert tmp/78aum1262168379.ps tmp/78aum1262168379.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.199 0.945 1.516