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(19685.6,19601.7,16006.9,17681.2,19790.4,17014.2,17424.5,18908.9,15692.1,15160,15794.3,16032.1,16065,16236.8,12521,14762.1,15446.9,13635,14212.6,15021.7,14134.3,13721.4,14384.5,15638.6,19711.6,20359.8,16141.4,20056.9,20605.5,19325.8,20547.7,19211.2,19009.5,18746.8,16471.5,18957.2,20515.2,18374.4,16192.9,18147.5,19301.4,18344.7,17183.6,19630,17167.2,17428.5,16016.5,18466.5,18406.6,18174.1,14851.9,16260.7,18329.6,18003.8,15903.8,19554.2,16554.2,16198.9,16571.8,17535.2,16198.1) > 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,] 19685.6 16065.0 19711.6 20515.2 18406.6 16198.1 [2,] 19601.7 16236.8 20359.8 18374.4 18174.1 NA [3,] 16006.9 12521.0 16141.4 16192.9 14851.9 NA [4,] 17681.2 14762.1 20056.9 18147.5 16260.7 NA [5,] 19790.4 15446.9 20605.5 19301.4 18329.6 NA [6,] 17014.2 13635.0 19325.8 18344.7 18003.8 NA [7,] 17424.5 14212.6 20547.7 17183.6 15903.8 NA [8,] 18908.9 15021.7 19211.2 19630.0 19554.2 NA [9,] 15692.1 14134.3 19009.5 17167.2 16554.2 NA [10,] 15160.0 13721.4 18746.8 17428.5 16198.9 NA [11,] 15794.3 14384.5 16471.5 16016.5 16571.8 NA [12,] 16032.1 15638.6 18957.2 18466.5 17535.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -83.9 171.8 648.2 -2140.8 -232.5 NA [2,] -3594.8 -3715.8 -4218.4 -2181.5 -3322.2 NA [3,] 1674.3 2241.1 3915.5 1954.6 1408.8 NA [4,] 2109.2 684.8 548.6 1153.9 2068.9 NA [5,] -2776.2 -1811.9 -1279.7 -956.7 -325.8 NA [6,] 410.3 577.6 1221.9 -1161.1 -2100.0 NA [7,] 1484.4 809.1 -1336.5 2446.4 3650.4 NA [8,] -3216.8 -887.4 -201.7 -2462.8 -3000.0 NA [9,] -532.1 -412.9 -262.7 261.3 -355.3 NA [10,] 634.3 663.1 -2275.3 -1412.0 372.9 NA [11,] 237.8 1254.1 2485.7 2450.0 963.4 NA [12,] 32.9 4073.0 1558.0 -59.9 -1337.1 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/1fwtg1293189477.ps",horizontal=F,onefile=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/2fwtg1293189477.ps",horizontal=F,onefile=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/3fwtg1293189477.ps",horizontal=F,onefile=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/4q5aj1293189477.ps",horizontal=F,onefile=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,] 16065.0 16236.8 14851.9 14762.1 18329.6 17014.2 14212.6 18908.9 14134.3 [2,] 16198.1 18174.1 14851.9 16260.7 18329.6 17014.2 15903.8 18908.9 15692.1 [3,] 19046.1 18374.4 16006.9 17681.2 19301.4 18003.8 17183.6 19211.2 16554.2 [4,] 19711.6 19601.7 16141.4 18147.5 19790.4 18344.7 17424.5 19554.2 17167.2 [5,] 20515.2 20359.8 16192.9 20056.9 20605.5 19325.8 17424.5 19630.0 19009.5 [,10] [,11] [,12] [1,] 13721.4 15794.3 15638.6 [2,] 15160.0 15794.3 16032.1 [3,] 16198.9 16016.5 17535.2 [4,] 17428.5 16471.5 18466.5 [5,] 18746.8 16571.8 18957.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,] 16779.78 17365.66 15095.74 16347.99 18269.20 17063.67 16109.08 18755.23 [2,] 21312.42 19383.14 16918.06 19014.41 20333.60 18943.93 18258.12 19667.17 [,9] [,10] [,11] [,12] [1,] 15511.90 14595.98 15537.99 15815.06 [2,] 17596.50 17801.82 16495.01 19255.34 $out [1] 12521.0 15446.9 13635.0 20547.7 15021.7 14384.5 $group [1] 3 5 6 7 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(16065, 16198.1, 19046.1, 19711.6, 20515.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5q5aj1293189477.ps",horizontal=F,onefile=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,] -232.5 -4218.4 1408.8 548.6 -2776.2 -2100.0 -1336.5 -3216.8 -532.1 [2,] -232.5 -3715.8 1674.3 684.8 -1811.9 -1161.1 809.1 -3000.0 -412.9 [3,] -83.9 -3594.8 1954.6 1153.9 -1279.7 410.3 1484.4 -2462.8 -355.3 [4,] 171.8 -3322.2 2241.1 2068.9 -956.7 577.6 2446.4 -887.4 -262.7 [5,] 648.2 -3322.2 2241.1 2109.2 -325.8 1221.9 3650.4 -201.7 -262.7 [,10] [,11] [,12] [1,] -2275.3 237.8 -1337.1 [2,] -1412.0 963.4 -59.9 [3,] 372.9 1254.1 32.9 [4,] 634.3 2450.0 1558.0 [5,] 663.1 2485.7 1558.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -369.5774 -3872.917 1554.101 175.8984 -1883.9822 -818.261 327.4879 [2,] 201.7774 -3316.683 2355.099 2131.9016 -675.4178 1638.861 2641.3121 [,8] [,9] [,10] [,11] [,12] [1,] -3955.5578 -461.4309 -1073.010 203.6722 -1110.304 [2,] -970.0422 -249.1691 1818.810 2304.5278 1176.104 $out [1] -2140.8 -2181.5 3915.5 261.3 4073.0 $group [1] 1 2 3 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-232.5, -232.5, -83.8999999999978, 171.799999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60e931293189477.ps",horizontal=F,onefile=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,] 15160.00 12521.00 18746.80 16016.50 14851.90 16198.1 [2,] 15900.60 13927.85 18852.00 17175.40 16229.80 16198.1 [3,] 17219.35 14573.30 19268.50 18246.10 17053.50 16198.1 [4,] 19255.30 15542.75 20208.35 18883.95 18251.85 16198.1 [5,] 19790.40 16236.80 20605.50 20515.20 19554.20 16198.1 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15689.25 13836.73 18649.86 17466.82 16131.23 16198.1 [2,] 18749.45 15309.87 19887.14 19025.38 17975.77 16198.1 $out [1] 16141.4 16471.5 $group [1] 3 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15160, 15900.6, 17219.35, 19255.3, 19790.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70e931293189477.ps",horizontal=F,onefile=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,] 15142.82 16006.90 15496.65 [2,] 16381.29 16376.55 16361.95 [3,] 17295.31 17608.20 17226.70 [4,] 18447.78 18710.25 18557.78 [5,] 18694.76 19301.40 19231.55 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16352.77 16543.78 16225.17 [2,] 18237.85 18672.62 18228.23 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15142.82, 16381.29, 17295.31, 18447.775, 18694.76, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fwtg1293189477.ps tmp/1fwtg1293189477.png",intern=TRUE)) character(0) > try(system("convert tmp/2fwtg1293189477.ps tmp/2fwtg1293189477.png",intern=TRUE)) character(0) > try(system("convert tmp/3fwtg1293189477.ps tmp/3fwtg1293189477.png",intern=TRUE)) character(0) > try(system("convert tmp/4q5aj1293189477.ps tmp/4q5aj1293189477.png",intern=TRUE)) character(0) > try(system("convert tmp/5q5aj1293189477.ps tmp/5q5aj1293189477.png",intern=TRUE)) character(0) > try(system("convert tmp/60e931293189477.ps tmp/60e931293189477.png",intern=TRUE)) character(0) > try(system("convert tmp/70e931293189477.ps tmp/70e931293189477.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.229 0.982 29.519