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(14497,14398.3,16629.6,16670.7,16614.8,16869.2,15663.9,16359.9,18447.7,16889,16505,18320.9,15052.1,15699.8,18135.3,16768.7,18883,19021,18101.9,17776.1,21489.9,17065.3,18690,18953.1,16398.9,16895.6,18553,19270,19422.1,17579.4,18637.3,18076.7,20438.6,18075.2,19563,19899.2,19227.5,17789.6,19220.8,21968.9,21131.5,19484.6,22168.7,20866.8,22176.2,23533.8,21479.6,24347.7,22751.6,20328.3,23650.4,23335.7,19614.9,18042.3,17282.5,16847.2,18159.5,16540.9,15952.7,18357.8,16394.3) > 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,] 14497.0 15052.1 16398.9 19227.5 22751.6 16394.3 [2,] 14398.3 15699.8 16895.6 17789.6 20328.3 NA [3,] 16629.6 18135.3 18553.0 19220.8 23650.4 NA [4,] 16670.7 16768.7 19270.0 21968.9 23335.7 NA [5,] 16614.8 18883.0 19422.1 21131.5 19614.9 NA [6,] 16869.2 19021.0 17579.4 19484.6 18042.3 NA [7,] 15663.9 18101.9 18637.3 22168.7 17282.5 NA [8,] 16359.9 17776.1 18076.7 20866.8 16847.2 NA [9,] 18447.7 21489.9 20438.6 22176.2 18159.5 NA [10,] 16889.0 17065.3 18075.2 23533.8 16540.9 NA [11,] 16505.0 18690.0 19563.0 21479.6 15952.7 NA [12,] 18320.9 18953.1 19899.2 24347.7 18357.8 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -98.7 647.7 496.7 -1437.9 -2423.3 NA [2,] 2231.3 2435.5 1657.4 1431.2 3322.1 NA [3,] 41.1 -1366.6 717.0 2748.1 -314.7 NA [4,] -55.9 2114.3 152.1 -837.4 -3720.8 NA [5,] 254.4 138.0 -1842.7 -1646.9 -1572.6 NA [6,] -1205.3 -919.1 1057.9 2684.1 -759.8 NA [7,] 696.0 -325.8 -560.6 -1301.9 -435.3 NA [8,] 2087.8 3713.8 2361.9 1309.4 1312.3 NA [9,] -1558.7 -4424.6 -2363.4 1357.6 -1618.6 NA [10,] -384.0 1624.7 1487.8 -2054.2 -588.2 NA [11,] 1815.9 263.1 336.2 2868.1 2405.1 NA [12,] -3268.8 -2554.2 -671.7 -1596.1 -1963.5 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/1ewnm1260710721.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/2exoo1260710721.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/3kx151260710721.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/4jq3c1260710721.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,] 14497.0 14398.3 16629.6 16670.7 18883.0 16869.2 15663.9 16359.9 18159.5 [2,] 15052.1 15699.8 18135.3 16768.7 18883.0 17579.4 17282.5 16847.2 18447.7 [3,] 16396.6 16895.6 18553.0 19270.0 19422.1 18042.3 18101.9 17776.1 20438.6 [4,] 19227.5 17789.6 19220.8 21968.9 19614.9 19021.0 18637.3 18076.7 21489.9 [5,] 22751.6 20328.3 19220.8 23335.7 19614.9 19484.6 18637.3 18076.7 22176.2 [,10] [,11] [,12] [1,] 16540.9 15952.7 18320.9 [2,] 16889.0 16505.0 18357.8 [3,] 17065.3 18690.0 18953.1 [4,] 18075.2 19563.0 19899.2 [5,] 18075.2 21479.6 19899.2 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 13703.33 15418.95 17785.99 15595.55 18904.94 17023.67 17144.60 16907.34 [2,] 19089.87 18372.25 19320.01 22944.45 19939.26 19060.93 19059.20 18644.86 [,9] [,10] [,11] [,12] [1,] 18288.99 16227.13 16529.22 17863.95 [2,] 22588.21 17903.47 20850.78 20042.25 $out [1] 23650.4 16614.8 21131.5 22168.7 20866.8 23533.8 24347.7 $group [1] 3 5 5 7 8 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(14497, 15052.1, 16396.6, 19227.5, 22751.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56f5z1260710721.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] [1,] -2423.3 1431.2 -1366.6 -837.4 -1842.7 -1205.3 -560.6 1309.4 -2363.4 [2,] -1437.9 1657.4 -314.7 -837.4 -1646.9 -919.1 -560.6 1312.3 -2363.4 [3,] -98.7 2231.3 41.1 -55.9 -1572.6 -759.8 -435.3 2087.8 -1618.6 [4,] 496.7 2435.5 717.0 152.1 138.0 1057.9 -325.8 2361.9 -1558.7 [5,] 647.7 3322.1 717.0 152.1 254.4 2684.1 -325.8 3713.8 -1558.7 [,10] [,11] [,12] [1,] -2054.2 263.1 -3268.8 [2,] -588.2 336.2 -2554.2 [3,] -384.0 1815.9 -1963.5 [4,] 1487.8 2405.1 -1596.1 [5,] 1624.7 2868.1 -671.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1465.683 1681.497 -687.8966 -755.0782 -2833.8058 -2156.7432 -601.2091 [2,] 1268.283 2781.103 770.0966 643.2782 -311.3942 637.1432 -269.3909 [,8] [,9] [,10] [,11] [,12] [1,] 1346.155 -2187.199 -1850.896 354.0205 -2640.491 [2,] 2829.445 -1050.001 1082.896 3277.7795 -1286.509 $out [1] 2748.1 2114.3 -3720.8 696.0 -1301.9 -4424.6 1357.6 $group [1] 3 4 4 7 7 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2423.3, -1437.90000000000, -98.7000000000007, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6jzh41260710721.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,] 15663.9 15052.10 16398.90 17789.60 15952.70 16394.3 [2,] 16011.9 16917.00 17827.30 19356.05 17064.85 16394.3 [3,] 16622.2 18118.60 18595.15 21305.55 18258.65 16394.3 [4,] 16879.1 18918.05 19492.55 22172.45 21539.95 16394.3 [5,] 16889.0 21489.90 20438.60 24347.70 23650.40 16394.3 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 16226.66 17205.91 17835.62 20020.97 16217.53 16394.3 [2,] 17017.74 19031.29 19354.68 22590.13 20299.77 16394.3 $out [1] 14497.0 14398.3 18447.7 18320.9 $group [1] 1 1 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15663.9, 16011.9, 16622.2, 16879.1, 16889, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7kkhm1260710721.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,] 17022.32 16396.60 16744.70 [2,] 18092.32 17420.70 17472.03 [3,] 18429.45 18327.45 18167.10 [4,] 19420.31 19111.55 19188.72 [5,] 20142.38 20438.60 19968.80 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 17823.74 17556.24 17384.1 [2,] 19035.16 19098.66 18950.1 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(17022.32, 18092.32, 18429.45, 19420.31, 20142.38, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ewnm1260710721.ps tmp/1ewnm1260710721.png",intern=TRUE)) character(0) > try(system("convert tmp/2exoo1260710721.ps tmp/2exoo1260710721.png",intern=TRUE)) character(0) > try(system("convert tmp/3kx151260710721.ps tmp/3kx151260710721.png",intern=TRUE)) character(0) > try(system("convert tmp/4jq3c1260710721.ps tmp/4jq3c1260710721.png",intern=TRUE)) character(0) > try(system("convert tmp/56f5z1260710721.ps tmp/56f5z1260710721.png",intern=TRUE)) character(0) > try(system("convert tmp/6jzh41260710721.ps tmp/6jzh41260710721.png",intern=TRUE)) character(0) > try(system("convert tmp/7kkhm1260710721.ps tmp/7kkhm1260710721.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.184 0.940 1.801