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(15912.8,13866.5,17823.2,17872,17420.4,16704.4,15991.2,16583.6,19123.5,17838.7,17209.4,18586.5,16258.1,15141.6,19202.1,17746.5,19090.1,18040.3,17515.5,17751.8,21072.4,17170,19439.5,19795.4,17574.9,16165.4,19464.6,19932.1,19961.2,17343.4,18924.2,18574.1,21350.6,18594.6,19823.1,20844.4,19640.2,17735.4,19813.6,22160,20664.3,17877.4,20906.5,21164.1,21374.4,22952.3,21343.5,23899.3,22392.9,18274.1,22786.7,22321.5,17842.2,16373.5,15993.8,16446.1,17729,16643,16196.7,18252.1,17304) > 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,] 15912.8 16258.1 17574.9 19640.2 22392.9 17304 [2,] 13866.5 15141.6 16165.4 17735.4 18274.1 NA [3,] 17823.2 19202.1 19464.6 19813.6 22786.7 NA [4,] 17872.0 17746.5 19932.1 22160.0 22321.5 NA [5,] 17420.4 19090.1 19961.2 20664.3 17842.2 NA [6,] 16704.4 18040.3 17343.4 17877.4 16373.5 NA [7,] 15991.2 17515.5 18924.2 20906.5 15993.8 NA [8,] 16583.6 17751.8 18574.1 21164.1 16446.1 NA [9,] 19123.5 21072.4 21350.6 21374.4 17729.0 NA [10,] 17838.7 17170.0 18594.6 22952.3 16643.0 NA [11,] 17209.4 19439.5 19823.1 21343.5 16196.7 NA [12,] 18586.5 19795.4 20844.4 23899.3 18252.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -2046.3 -1116.5 -1409.5 -1904.8 -4118.8 NA [2,] 3956.7 4060.5 3299.2 2078.2 4512.6 NA [3,] 48.8 -1455.6 467.5 2346.4 -465.2 NA [4,] -451.6 1343.6 29.1 -1495.7 -4479.3 NA [5,] -716.0 -1049.8 -2617.8 -2786.9 -1468.7 NA [6,] -713.2 -524.8 1580.8 3029.1 -379.7 NA [7,] 592.4 236.3 -350.1 257.6 452.3 NA [8,] 2539.9 3320.6 2776.5 210.3 1282.9 NA [9,] -1284.8 -3902.4 -2756.0 1577.9 -1086.0 NA [10,] -629.3 2269.5 1228.5 -1608.8 -446.3 NA [11,] 1377.1 355.9 1021.3 2555.8 2055.4 NA [12,] -2328.4 -2220.5 -1204.2 -1506.4 -948.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/1ooqo1260702367.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/20gbz1260702367.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/3b28g1260702367.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/4jsvr1260702367.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,] 15912.80 13866.5 19202.1 17746.5 17420.4 16373.5 15991.2 16446.1 17729.0 [2,] 16258.10 15141.6 19202.1 17872.0 17842.2 16704.4 15993.8 16583.6 19123.5 [3,] 17439.45 16165.4 19464.6 19932.1 19090.1 17343.4 17515.5 17751.8 21072.4 [4,] 19640.20 17735.4 19813.6 22160.0 19961.2 17877.4 18924.2 18574.1 21350.6 [5,] 22392.90 18274.1 19813.6 22321.5 20664.3 18040.3 20906.5 21164.1 21374.4 [,10] [,11] [,12] [1,] 16643.0 16196.7 18252.1 [2,] 17170.0 17209.4 18586.5 [3,] 17838.7 19439.5 19795.4 [4,] 18594.6 19823.1 20844.4 [5,] 18594.6 21343.5 23899.3 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15257.89 14332.63 19032.52 16902.21 17592.82 16514.56 15444.89 16345.32 [2,] 19621.01 17998.17 19896.68 22961.99 20587.38 18172.24 19586.11 19158.28 [,9] [,10] [,11] [,12] [1,] 19498.74 16832.08 17592.67 18199.97 [2,] 22646.06 18845.32 21286.33 21390.83 $out [1] 17823.2 22786.7 22952.3 $group [1] 3 3 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15912.8, 16258.1, 17439.45, 19640.2, 22392.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rsbj1260702367.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,] -2046.3 3299.2 -1455.6 -1495.7 -2786.9 -713.2 236.3 210.3 -3902.4 -1608.8 [2,] -2046.3 3299.2 -465.2 -1495.7 -2617.8 -524.8 236.3 1282.9 -2756.0 -629.3 [3,] -1904.8 3956.7 48.8 -451.6 -1468.7 -379.7 257.6 2539.9 -1284.8 -446.3 [4,] -1409.5 4060.5 467.5 29.1 -1049.8 1580.8 452.3 2776.5 -1086.0 1228.5 [5,] -1116.5 4512.6 467.5 1343.6 -716.0 3029.1 592.4 3320.6 -1086.0 2269.5 [,11] [,12] [1,] 355.9 -2328.4 [2,] 1021.3 -2220.5 [3,] 1377.1 -1506.4 [4,] 2055.4 -1204.2 [5,] 2555.8 -948.1 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2354.761 3418.767 -610.2435 -1529.0198 -2576.6449 -1867.512 104.9749 [2,] -1454.839 4494.633 707.8435 625.8198 -360.7551 1108.112 410.2251 [,8] [,9] [,10] [,11] [,12] [1,] 1484.526 -2464.8178 -1759.0168 646.4075 -2224.515 [2,] 3595.274 -104.7822 866.4168 2107.7925 -788.285 $out [1] -4118.8 2078.2 2346.4 -4479.3 -350.1 1577.9 $group [1] 1 2 3 4 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2046.3, -2046.3, -1904.8, -1409.50000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sevd1260702367.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,] 15912.80 15141.60 16165.40 17735.4 15993.8 17304 [2,] 16287.40 17342.75 18074.50 19726.9 16409.8 17304 [3,] 17314.90 17896.05 19194.40 21035.3 17785.6 17304 [4,] 17855.35 19320.80 19946.65 21767.2 20297.8 17304 [5,] 19123.50 21072.40 21350.60 23899.3 22786.7 17304 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 16599.75 16993.85 18340.5 20104.71 16012.26 17304 [2,] 18030.05 18798.25 20048.3 21965.89 19558.94 17304 $out [1] 13866.5 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15912.8, 16287.4, 17314.9, 17855.35, 19123.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70tty1260702367.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,] 16236.60 16165.40 16438.50 [2,] 17985.09 17477.47 17518.92 [3,] 18721.08 18464.40 18199.28 [4,] 19912.23 19630.00 19611.65 [5,] 20275.54 21072.40 20237.05 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 17842.10 17482.62 17244.77 [2,] 19600.06 19446.18 19153.78 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16236.6, 17985.09, 18721.08, 19912.23, 20275.54, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ooqo1260702367.ps tmp/1ooqo1260702367.png",intern=TRUE)) character(0) > try(system("convert tmp/20gbz1260702367.ps tmp/20gbz1260702367.png",intern=TRUE)) character(0) > try(system("convert tmp/3b28g1260702367.ps tmp/3b28g1260702367.png",intern=TRUE)) character(0) > try(system("convert tmp/4jsvr1260702367.ps tmp/4jsvr1260702367.png",intern=TRUE)) character(0) > try(system("convert tmp/5rsbj1260702367.ps tmp/5rsbj1260702367.png",intern=TRUE)) character(0) > try(system("convert tmp/6sevd1260702367.ps tmp/6sevd1260702367.png",intern=TRUE)) character(0) > try(system("convert tmp/70tty1260702367.ps tmp/70tty1260702367.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.198 0.951 1.689