R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(104,107.9,113.8,113.8,123.1,125.1,137.6,134,140.3,152.1,150.6,167.3,153.2,142,154.4,158.5,180.9,181.3,172.4,192,199.3,215.4,214.3,201.5,190.5,196,215.7,209.4,214.1,237.8,239,237.8,251.5,248.8,215.4,201.2,203.1,214.2,188.9,203,213.3,228.5,228.2,240.9,258.8,248.5,269.2,289.6,323.4,317.2,322.8,340.9,368.2,388.5,441.2,474.3,483.9,417.9,365.9,263,199.4) > 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,] 104.0 153.2 190.5 203.1 323.4 199.4 [2,] 107.9 142.0 196.0 214.2 317.2 NA [3,] 113.8 154.4 215.7 188.9 322.8 NA [4,] 113.8 158.5 209.4 203.0 340.9 NA [5,] 123.1 180.9 214.1 213.3 368.2 NA [6,] 125.1 181.3 237.8 228.5 388.5 NA [7,] 137.6 172.4 239.0 228.2 441.2 NA [8,] 134.0 192.0 237.8 240.9 474.3 NA [9,] 140.3 199.3 251.5 258.8 483.9 NA [10,] 152.1 215.4 248.8 248.5 417.9 NA [11,] 150.6 214.3 215.4 269.2 365.9 NA [12,] 167.3 201.5 201.2 289.6 263.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.9 -11.2 5.5 11.1 -6.2 NA [2,] 5.9 12.4 19.7 -25.3 5.6 NA [3,] 0.0 4.1 -6.3 14.1 18.1 NA [4,] 9.3 22.4 4.7 10.3 27.3 NA [5,] 2.0 0.4 23.7 15.2 20.3 NA [6,] 12.5 -8.9 1.2 -0.3 52.7 NA [7,] -3.6 19.6 -1.2 12.7 33.1 NA [8,] 6.3 7.3 13.7 17.9 9.6 NA [9,] 11.8 16.1 -2.7 -10.3 -66.0 NA [10,] -1.5 -1.1 -33.4 20.7 -52.0 NA [11,] 16.7 -12.8 -14.2 20.4 -102.9 NA [12,] -14.1 -11.0 1.9 33.8 -63.6 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/1gyl71229866312.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/2bjeh1229866312.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/35pyg1229866312.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/4vsj21229866312.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] [,11] [,12] [1,] 104.00 107.9 113.8 113.8 180.9 125.1 137.6 134.0 140.3 215.4 150.6 167.3 [2,] 153.20 142.0 154.4 158.5 180.9 181.3 172.4 192.0 199.3 215.4 214.3 201.2 [3,] 194.95 196.0 188.9 203.0 213.3 228.5 228.2 237.8 251.5 248.5 215.4 201.5 [4,] 203.10 214.2 215.7 209.4 214.1 237.8 239.0 240.9 258.8 248.8 269.2 263.0 [5,] 203.10 317.2 215.7 209.4 214.1 237.8 239.0 240.9 258.8 248.8 269.2 289.6 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 162.7629 144.9837 145.5856 167.0342 189.8410 188.5772 181.1406 203.2474 [2,] 227.1371 247.0163 232.2144 238.9658 236.7590 268.4228 275.2594 272.3526 [,9] [,10] [,11] [,12] [1,] 209.4574 224.8996 176.6078 157.8323 [2,] 293.5426 272.1004 254.1922 245.1677 $out [1] 323.4 322.8 340.9 123.1 368.2 388.5 441.2 474.3 483.9 152.1 417.9 365.9 $group [1] 1 3 4 5 5 6 7 8 9 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(104, 153.2, 194.95, 203.1, 203.1, 107.9, 142, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5pg2k1229866312.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] [,12] [1,] -11.2 5.6 -6.3 4.7 0.4 -8.9 -3.6 6.3 -10.3 -52.0 -14.2 -14.1 [2,] -6.2 5.6 0.0 9.3 2.0 -0.3 -1.2 7.3 -10.3 -33.4 -14.2 -14.1 [3,] 3.9 5.9 4.1 10.3 15.2 1.2 12.7 9.6 -2.7 -1.5 -12.8 -11.0 [4,] 5.5 12.4 14.1 22.4 20.3 12.5 19.6 13.7 11.8 -1.1 16.7 1.9 [5,] 11.1 19.7 18.1 27.3 23.7 12.5 33.1 17.9 16.1 20.7 20.4 1.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.367191 1.095137 -5.863024 1.043573 2.269266 -7.844448 -1.997228 [2,] 12.167191 10.704863 14.063024 19.556427 28.130734 10.244448 27.397228 [,8] [,9] [,10] [,11] [,12] [1,] 5.077776 -18.31580 -24.3231 -34.633862 -22.3055597 [2,] 14.122224 12.91580 21.3231 9.033862 0.3055597 $out [1] -25.3 52.7 -66.0 -102.9 33.8 -63.6 $group [1] 2 6 9 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11.200, -6.19999999999999, 3.90000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6m2dq1229866312.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,] 104.00 142.00 190.50 188.90 263.00 199.4 [2,] 113.80 156.45 205.30 208.20 323.10 199.4 [3,] 129.55 181.10 215.55 228.35 367.05 199.4 [4,] 145.45 200.40 238.40 253.65 429.55 199.4 [5,] 167.30 215.40 251.50 289.60 483.90 199.4 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 115.1142 161.0541 200.4529 207.6199 318.4974 199.4 [2,] 143.9858 201.1459 230.6471 249.0801 415.6026 199.4 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(104, 113.8, 129.55, 145.45, 167.3, 142, 156.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7rwxi1229866312.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,] 195.46 188.90 178.100 [2,] 202.12 198.75 184.500 [3,] 228.38 214.35 207.625 [4,] 249.74 233.15 230.575 [5,] 266.76 251.50 241.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 206.6602 198.6599 186.6099 [2,] 250.0998 230.0401 228.6401 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(195.46, 202.12, 228.38, 249.74, 266.76, 188.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1gyl71229866312.ps tmp/1gyl71229866312.png") > system("convert tmp/2bjeh1229866312.ps tmp/2bjeh1229866312.png") > system("convert tmp/35pyg1229866312.ps tmp/35pyg1229866312.png") > system("convert tmp/4vsj21229866312.ps tmp/4vsj21229866312.png") > system("convert tmp/5pg2k1229866312.ps tmp/5pg2k1229866312.png") > system("convert tmp/6m2dq1229866312.ps tmp/6m2dq1229866312.png") > system("convert tmp/7rwxi1229866312.ps tmp/7rwxi1229866312.png") > > > proc.time() user system elapsed 1.217 0.945 1.589