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(153.24,184.48,191.81,168.19,163.81,190.57,163.81,129.62,173.90,198.76,135.52,179.81,137.05,142.57,187.52,220.48,208.76,210.19,232.57,173.81,218.86,226.76,196.67,237.43,173.14,207.62,234.67,204.10,230.76,210.19,194.76,172.10,221.90,225.24,228.00,198.76,199.05,235.43,270.76,234.10,237.24,239.43,239.24,197.33,217.43,242.19,207.52,232.76,222.10,202.48,228.10,319.52,236.95,252.00,262.29,172.10,243.90,235.62,216.95,236.29) > 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,] 153.24 137.05 173.14 199.05 222.10 NA [2,] 184.48 142.57 207.62 235.43 202.48 NA [3,] 191.81 187.52 234.67 270.76 228.10 NA [4,] 168.19 220.48 204.10 234.10 319.52 NA [5,] 163.81 208.76 230.76 237.24 236.95 NA [6,] 190.57 210.19 210.19 239.43 252.00 NA [7,] 163.81 232.57 194.76 239.24 262.29 NA [8,] 129.62 173.81 172.10 197.33 172.10 NA [9,] 173.90 218.86 221.90 217.43 243.90 NA [10,] 198.76 226.76 225.24 242.19 235.62 NA [11,] 135.52 196.67 228.00 207.52 216.95 NA [12,] 179.81 237.43 198.76 232.76 236.29 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 31.24 5.52 34.48 36.38 -19.62 NA [2,] 7.33 44.95 27.05 35.33 25.62 NA [3,] -23.62 32.96 -30.57 -36.66 91.42 NA [4,] -4.38 -11.72 26.66 3.14 -82.57 NA [5,] 26.76 1.43 -20.57 2.19 15.05 NA [6,] -26.76 22.38 -15.43 -0.19 10.29 NA [7,] -34.19 -58.76 -22.66 -41.91 -90.19 NA [8,] 44.28 45.05 49.80 20.10 71.80 NA [9,] 24.86 7.90 3.34 24.76 -8.28 NA [10,] -63.24 -30.09 2.76 -34.67 -18.67 NA [11,] 44.29 40.76 -29.24 25.24 19.34 NA [12,] -42.76 -64.29 0.29 -10.66 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/12b7g1258141259.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/2xuki1258141259.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/3c96d1258141259.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/45lbe1258141259.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] [,10] [1,] 137.05 184.48 187.52 168.19 208.76 190.57 163.81 172.10 217.43 225.24 [2,] 153.24 184.48 191.81 204.10 208.76 210.19 194.76 172.10 217.43 225.24 [3,] 173.14 202.48 228.10 220.48 230.76 210.19 232.57 172.10 218.86 226.76 [4,] 199.05 207.62 234.67 234.10 236.95 239.43 239.24 173.81 221.90 235.62 [5,] 222.10 235.43 270.76 234.10 237.24 252.00 262.29 173.81 221.90 242.19 [,11] [,12] [1,] 196.67 179.81 [2,] 196.67 198.76 [3,] 207.52 232.76 [4,] 216.95 236.29 [5,] 228.00 237.43 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 140.7708 186.1293 197.8152 199.2821 210.841 189.5291 201.1405 170.8917 [2,] 205.5092 218.8307 258.3848 241.6779 250.679 230.8509 263.9995 173.3083 [,9] [,10] [,11] [,12] [1,] 215.7015 219.4255 193.1902 206.2414 [2,] 222.0185 234.0945 221.8498 259.2786 $out [1] 142.57 319.52 163.81 129.62 197.33 173.90 243.90 198.76 135.52 $group [1] 2 4 5 8 8 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(137.05, 153.24, 173.14, 199.05, 222.1, 184.48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/582q41258141259.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] [,11] [1,] -19.62 25.62 -36.66 -11.72 1.43 -26.76 -90.19 44.28 -8.28 -34.67 19.34 [2,] 5.52 25.62 -30.57 -11.72 1.43 -15.43 -58.76 44.28 3.34 -34.67 19.34 [3,] 31.24 27.05 -23.62 -4.38 2.19 -0.19 -41.91 45.05 7.90 -30.09 25.24 [4,] 34.48 35.33 32.96 3.14 15.05 10.29 -34.19 49.80 24.76 -18.67 40.76 [5,] 36.38 44.95 91.42 3.14 26.76 22.38 -22.66 49.80 24.86 2.76 44.29 [,12] [1,] -64.290 [2,] -53.525 [3,] -26.710 [4,] -5.185 [5,] 0.290 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.77694 20.18894 -68.51014 -14.880039 -7.433858 -18.36369 -59.2711 [2,] 51.70306 33.91106 21.27014 6.120039 11.813858 17.98369 -24.5489 [,8] [,9] [,10] [,11] [,12] [1,] 41.14958 -7.235318 -41.39556 10.10468 -64.8986 [2,] 48.95042 23.035318 -18.78444 40.37532 11.4786 $out [1] 7.33 26.66 -82.57 -20.57 20.10 71.80 -63.24 -29.24 $group [1] 2 4 4 5 8 8 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-19.62, 5.51999999999998, 31.24, 34.48, 36.38, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wfow1258141259.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,] 129.620 137.050 172.100 197.330 202.480 NA [2,] 158.525 180.665 196.760 212.475 219.525 NA [3,] 171.045 209.475 208.905 234.765 235.955 NA [4,] 187.525 223.620 226.620 239.335 247.950 NA [5,] 198.760 237.430 234.670 270.760 262.290 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 157.8179 189.8829 195.2857 222.5140 222.9902 NA [2,] 184.2721 229.0671 222.5243 247.0160 248.9198 NA $out [1] 319.52 172.10 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(129.62, 158.525, 171.045, 187.525, 198.76, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7rfc61258141259.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,] 168.992 172.10 172.9550 [2,] 195.724 205.00 201.4300 [3,] 216.257 219.67 217.2625 [4,] 221.524 229.43 221.2600 [5,] 229.278 232.76 230.4300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 204.4894 208.5273 208.2179 [2,] 228.0246 230.8127 226.3071 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(168.992, 195.724, 216.257, 221.524, 229.278, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/12b7g1258141259.ps tmp/12b7g1258141259.png") > system("convert tmp/2xuki1258141259.ps tmp/2xuki1258141259.png") > system("convert tmp/3c96d1258141259.ps tmp/3c96d1258141259.png") > system("convert tmp/45lbe1258141259.ps tmp/45lbe1258141259.png") > system("convert tmp/582q41258141259.ps tmp/582q41258141259.png") > system("convert tmp/6wfow1258141259.ps tmp/6wfow1258141259.png") > system("convert tmp/7rfc61258141259.ps tmp/7rfc61258141259.png") > > > proc.time() user system elapsed 1.228 0.962 1.520