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(10001.60,10411.75,10673.38,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.01,8679.75,9374.63,9634.97) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10001.60 10324.31 11963.12 13901.28 9181.73 NA [2,] 10411.75 10695.25 12185.15 13200.58 8614.55 NA [3,] 10673.38 10827.81 12377.62 13406.97 8595.56 NA [4,] 10539.51 10872.48 12512.89 12538.12 8396.20 NA [5,] 10723.78 10971.19 12631.48 12419.57 7690.50 NA [6,] 10682.06 11145.65 12268.53 12193.88 7235.47 NA [7,] 10283.19 11234.68 12754.80 12656.63 7992.12 NA [8,] 10377.18 11333.88 13407.75 12812.48 8398.37 NA [9,] 10486.64 10997.97 13480.21 12056.67 8593.01 NA [10,] 10545.38 11036.89 13673.28 11322.38 8679.75 NA [11,] 10554.27 11257.35 13239.71 11530.75 9374.63 NA [12,] 10532.54 11533.59 13557.69 11114.08 9634.97 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 410.15 370.94 222.03 -700.70 -567.18 NA [2,] 261.63 132.56 192.47 206.39 -18.99 NA [3,] -133.87 44.67 135.27 -868.85 -199.36 NA [4,] 184.27 98.71 118.59 -118.55 -705.70 NA [5,] -41.72 174.46 -362.95 -225.69 -455.03 NA [6,] -398.87 89.03 486.27 462.75 756.65 NA [7,] 93.99 99.20 652.95 155.85 406.25 NA [8,] 109.46 -335.91 72.46 -755.81 194.64 NA [9,] 58.74 38.92 193.07 -734.29 86.74 NA [10,] 8.89 220.46 -433.57 208.37 694.88 NA [11,] -21.73 276.24 317.98 -416.67 260.34 NA [12,] -208.23 429.53 343.59 -1932.35 NA 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/1u8lr1258291318.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/2adar1258291318.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/3b6ks1258291318.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/49whw1258291318.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,] 9181.73 8614.55 8595.56 8396.20 10723.78 10682.06 7992.12 8398.37 [2,] 10001.60 10411.75 10673.38 10539.51 10723.78 10682.06 10283.19 10377.18 [3,] 10324.31 10695.25 10827.81 10872.48 10971.19 11145.65 11234.68 11333.88 [4,] 11963.12 12185.15 12377.62 12512.89 12419.57 12193.88 12656.63 12812.48 [5,] 13901.28 13200.58 13406.97 12538.12 12631.48 12268.53 12754.80 13407.75 [,9] [,10] [,11] [,12] [1,] 8593.01 10545.38 9374.63 9634.97 [2,] 10486.64 10545.38 10554.27 10532.54 [3,] 10997.97 11036.89 11257.35 11114.08 [4,] 12056.67 11322.38 11530.75 11533.59 [5,] 13480.21 11322.38 11530.75 11533.59 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8938.305 9442.17 9623.598 9478.095 9772.95 10077.40 9557.613 [2,] 11710.315 11948.33 12032.022 12266.865 12169.43 12213.90 12911.747 [,8] [,9] [,10] [,11] [,12] [1,] 9613.103 9888.59 10487.86 10567.37 10406.74 [2,] 13054.657 12107.35 11585.92 11947.33 11821.42 $out [1] 7690.50 7235.47 13673.28 8679.75 13239.71 13557.69 $group [1] 5 6 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(9181.73, 10001.6, 10324.31, 11963.12, 13901.28, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ipni1258291318.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,] -700.70 132.56 -199.36 -118.55 -455.03 -398.87 93.99 -755.81 38.92 8.89 [2,] -567.18 132.56 -199.36 -118.55 -362.95 89.03 99.20 -335.91 38.92 8.89 [3,] 222.03 192.47 -133.87 98.71 -225.69 462.75 155.85 72.46 58.74 208.37 [4,] 370.94 206.39 44.67 118.59 -41.72 486.27 406.25 109.46 86.74 220.46 [5,] 410.15 261.63 135.27 184.27 174.46 756.65 652.95 194.64 86.74 220.46 [,11] [,12] [1,] -416.67 -1932.35 [2,] -21.73 -1070.29 [3,] 260.34 67.68 [4,] 276.24 386.56 [5,] 317.98 429.53 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -440.8432 140.3019 -306.30098 -68.85253 -452.670309 182.0612 -61.11076 [2,] 884.9032 244.6381 38.56098 266.27253 1.290309 743.4388 372.81076 [,8] [,9] [,10] [,11] [,12] [1,] -242.2373 24.95051 58.87517 49.79515 -1083.232 [2,] 387.1573 92.52949 357.86483 470.88485 1218.592 $out [1] -18.99 -868.85 -705.70 193.07 -734.29 -433.57 694.88 $group [1] 2 3 4 9 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-700.700, -567.18, 222.029999999999, 370.940000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6o9en1258291318.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,] 10283.19 10324.31 11963.12 11114.08 7235.470 NA [2,] 10394.47 10850.15 12323.08 11793.71 8194.160 NA [3,] 10536.03 11017.43 12693.14 12478.85 8594.285 NA [4,] 10613.83 11246.01 13443.98 13006.53 8930.740 NA [5,] 10723.78 11533.59 13673.28 13901.28 9634.970 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10435.97 10836.87 12181.89 11925.67 8258.326 NA [2,] 10636.08 11197.99 13204.39 13032.02 8930.244 NA $out [1] 10001.6 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(10283.19, 10394.465, 10536.025, 10613.825, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/73nu81258291318.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,] 10705.12 10695.25 10933.88 [2,] 10978.06 10850.15 11037.79 [3,] 11062.97 11017.43 11368.21 [4,] 11183.81 11190.17 11525.85 [5,] 11274.57 11333.88 11594.83 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10969.13 10862.34 11145.60 [2,] 11156.81 11172.52 11590.82 $out [1] 10324.31 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10705.118, 10978.062, 11062.972, 11183.805, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1u8lr1258291318.ps tmp/1u8lr1258291318.png") > system("convert tmp/2adar1258291318.ps tmp/2adar1258291318.png") > system("convert tmp/3b6ks1258291318.ps tmp/3b6ks1258291318.png") > system("convert tmp/49whw1258291318.ps tmp/49whw1258291318.png") > system("convert tmp/5ipni1258291318.ps tmp/5ipni1258291318.png") > system("convert tmp/6o9en1258291318.ps tmp/6o9en1258291318.png") > system("convert tmp/73nu81258291318.ps tmp/73nu81258291318.png") > > > proc.time() user system elapsed 1.163 0.910 1.511