R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(10539.51,10723.78,10682.06,10283.19,10377.18,10486.64,10545.38,10554.27,10532.54,10324.31,10695.25,10827.81,10872.48,10971.19,11145.65,11234.68,11333.88,10997.97,11036.89,11257.35,11533.59,11963.12,12185.15,12377.62,12512.89,12631.48,12268.53,12754.80,13407.75,13480.21,13673.28,13239.71,13557.69,13901.28,13200.58,13406.97,12538.12,12419.57,12193.88,12656.63,12812.48,12056.67,11322.38,11530.75,11114.08,9181.73,8614.55,8595.56,8396.20,7690.50,7235.47,7992.12,8398.37,8593.00,8679.75,9374.63,9634.97,9857.34,10238.83,10433.44,10471.24) > 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,] 10539.51 10872.48 12512.89 12538.12 8396.20 10471.24 [2,] 10723.78 10971.19 12631.48 12419.57 7690.50 NA [3,] 10682.06 11145.65 12268.53 12193.88 7235.47 NA [4,] 10283.19 11234.68 12754.80 12656.63 7992.12 NA [5,] 10377.18 11333.88 13407.75 12812.48 8398.37 NA [6,] 10486.64 10997.97 13480.21 12056.67 8593.00 NA [7,] 10545.38 11036.89 13673.28 11322.38 8679.75 NA [8,] 10554.27 11257.35 13239.71 11530.75 9374.63 NA [9,] 10532.54 11533.59 13557.69 11114.08 9634.97 NA [10,] 10324.31 11963.12 13901.28 9181.73 9857.34 NA [11,] 10695.25 12185.15 13200.58 8614.55 10238.83 NA [12,] 10827.81 12377.62 13406.97 8595.56 10433.44 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 184.27 98.71 118.59 -118.55 -705.70 NA [2,] -41.72 174.46 -362.95 -225.69 -455.03 NA [3,] -398.87 89.03 486.27 462.75 756.65 NA [4,] 93.99 99.20 652.95 155.85 406.25 NA [5,] 109.46 -335.91 72.46 -755.81 194.63 NA [6,] 58.74 38.92 193.07 -734.29 86.75 NA [7,] 8.89 220.46 -433.57 208.37 694.88 NA [8,] -21.73 276.24 317.98 -416.67 260.34 NA [9,] -208.23 429.53 343.59 -1932.35 222.37 NA [10,] 370.94 222.03 -700.70 -567.18 381.49 NA [11,] 132.56 192.47 206.39 -18.99 194.61 NA [12,] 44.67 135.27 -868.85 -199.36 37.80 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/wessaorg/rcomp/tmp/10g8r1321571536.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/wessaorg/rcomp/tmp/2sur51321571536.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/wessaorg/rcomp/tmp/3r93e1321571536.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/wessaorg/rcomp/tmp/4nn131321571536.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] [1,] 8396.20 10723.78 10682.06 7992.12 8398.37 8593.00 10545.38 9374.63 [2,] 10471.24 10723.78 10682.06 10283.19 10377.18 10486.64 10545.38 10554.27 [3,] 10705.99 10971.19 11145.65 11234.68 11333.88 10997.97 11036.89 11257.35 [4,] 12512.89 12419.57 12193.88 12656.63 12812.48 12056.67 11322.38 11530.75 [5,] 12538.12 12631.48 12268.53 12754.80 13407.75 13480.21 11322.38 11530.75 [,9] [,10] [,11] [,12] [1,] 9634.97 9181.73 8614.55 8595.56 [2,] 10532.54 9857.34 10238.83 10433.44 [3,] 11114.08 10324.31 10695.25 10827.81 [4,] 11533.59 11963.12 12185.15 12377.62 [5,] 11533.59 13901.28 13200.58 13406.97 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9389.065 9772.949 10077.4 9557.613 9613.103 9888.591 10487.86 [2,] 12022.925 12169.431 12213.9 12911.747 13054.657 12107.349 11585.92 [,8] [,9] [,10] [,11] [,12] [1,] 10567.37 10406.74 8836.371 9319.985 9454.057 [2,] 11947.33 11821.42 11812.249 12070.515 12201.563 $out [1] 7690.50 7235.47 13673.28 8679.75 13239.71 13557.69 $group [1] 2 3 7 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(8396.2, 10471.24, 10705.995, 12512.89, 12538.12, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/59c1u1321571536.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,] -118.55 -455.03 -398.87 93.99 -755.81 38.92 8.89 -416.67 -208.23 [2,] -118.55 -362.95 89.03 99.20 -335.91 38.92 8.89 -21.73 -208.23 [3,] 98.71 -225.69 462.75 155.85 72.46 58.74 208.37 260.34 222.37 [4,] 118.59 -41.72 486.27 406.25 109.46 86.75 220.46 276.24 343.59 [5,] 184.27 174.46 756.65 652.95 194.63 86.75 220.46 317.98 429.53 [,10] [,11] [,12] [1,] -700.70 132.56 -199.36 [2,] -567.18 132.56 -199.36 [3,] 222.03 192.47 37.80 [4,] 370.94 194.61 44.67 [5,] 381.49 206.39 135.27 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -68.85253 -452.670309 182.0612 -61.11076 -242.2373 24.94344 58.87517 [2,] 266.27253 1.290309 743.4388 372.81076 387.1573 92.53656 357.86483 [,8] [,9] [,10] [,11] [,12] [1,] 49.79515 -167.5446 -440.8432 148.6256 -134.631 [2,] 470.88485 612.2846 884.9032 236.3144 210.231 $out [1] -705.70 193.07 -734.29 -433.57 694.88 -1932.35 -18.99 -868.85 $group [1] 1 6 6 7 7 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-118.550000000001, -118.550000000001, 98.7100000000009, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/684eo1321571536.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,] 10283.19 10872.48 12268.53 8595.56 7235.470 10471.24 [2,] 10431.91 11017.43 12693.14 10147.90 8194.160 10471.24 [3,] 10542.44 11246.01 13323.34 11793.71 8636.375 10471.24 [4,] 10688.65 11748.35 13518.95 12478.85 9746.155 10471.24 [5,] 10827.81 12377.62 13901.28 12812.48 10433.440 10471.24 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10425.34 10912.64 12946.68 10730.55 7928.50 10471.24 [2,] 10659.55 11579.39 13700.00 12856.87 9344.25 10471.24 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(10283.19, 10431.91, 10542.445, 10688.655, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7h2or1321571536.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,] 10705.12 10324.31 10910.23 [2,] 10936.35 10766.90 11037.79 [3,] 11048.55 11017.43 11283.60 [4,] 11159.81 11190.17 11453.94 [5,] 11274.57 11333.88 11594.83 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10946.62 10824.38 11093.79 [2,] 11150.47 11210.48 11473.41 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10705.118, 10936.3453333333, 11048.546, 11159.811, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/10g8r1321571536.ps tmp/10g8r1321571536.png",intern=TRUE)) character(0) > try(system("convert tmp/2sur51321571536.ps tmp/2sur51321571536.png",intern=TRUE)) character(0) > try(system("convert tmp/3r93e1321571536.ps tmp/3r93e1321571536.png",intern=TRUE)) character(0) > try(system("convert tmp/4nn131321571536.ps tmp/4nn131321571536.png",intern=TRUE)) character(0) > try(system("convert tmp/59c1u1321571536.ps tmp/59c1u1321571536.png",intern=TRUE)) character(0) > try(system("convert tmp/684eo1321571536.ps tmp/684eo1321571536.png",intern=TRUE)) character(0) > try(system("convert tmp/7h2or1321571536.ps tmp/7h2or1321571536.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.529 0.315 1.848