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(107.1,110.7,117.1,118.7,126.5,127.5,134.6,131.8,135.9,142.7,141.7,153.4,145,137.7,148.3,152.2,169.4,168.6,161.1,174.1,179,190.6,190,181.6,174.8,180.5,196.8,193.8,197,216.3,221.4,217.9,229.7,227.4,204.2,196.6,198.8,207.5,190.7,201.6,210.5,223.5,223.8,231.2,244,234.7,250.2,265.7,287.6,283.3,295.4,312.3,333.8,347.7,383.2,407.1,413.6,362.7,321.9,239.4,191) > 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,] 107.1 145.0 174.8 198.8 287.6 191 [2,] 110.7 137.7 180.5 207.5 283.3 NA [3,] 117.1 148.3 196.8 190.7 295.4 NA [4,] 118.7 152.2 193.8 201.6 312.3 NA [5,] 126.5 169.4 197.0 210.5 333.8 NA [6,] 127.5 168.6 216.3 223.5 347.7 NA [7,] 134.6 161.1 221.4 223.8 383.2 NA [8,] 131.8 174.1 217.9 231.2 407.1 NA [9,] 135.9 179.0 229.7 244.0 413.6 NA [10,] 142.7 190.6 227.4 234.7 362.7 NA [11,] 141.7 190.0 204.2 250.2 321.9 NA [12,] 153.4 181.6 196.6 265.7 239.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.6 -7.3 5.7 8.7 -4.3 NA [2,] 6.4 10.6 16.3 -16.8 12.1 NA [3,] 1.6 3.9 -3.0 10.9 16.9 NA [4,] 7.8 17.2 3.2 8.9 21.5 NA [5,] 1.0 -0.8 19.3 13.0 13.9 NA [6,] 7.1 -7.5 5.1 0.3 35.5 NA [7,] -2.8 13.0 -3.5 7.4 23.9 NA [8,] 4.1 4.9 11.8 12.8 6.5 NA [9,] 6.8 11.6 -2.3 -9.3 -50.9 NA [10,] -1.0 -0.6 -23.2 15.5 -40.8 NA [11,] 11.7 -8.4 -7.6 15.5 -82.5 NA [12,] -8.4 -6.8 2.2 21.9 -48.4 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/1089z1229864387.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/2qgbe1229864387.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/3mnx11229864387.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/4dxuw1229864387.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,] 107.1 110.7 117.1 118.7 126.5 127.5 134.6 131.8 135.9 142.7 141.7 153.4 [2,] 145.0 137.7 148.3 152.2 169.4 168.6 161.1 174.1 179.0 190.6 190.0 181.6 [3,] 182.9 180.5 190.7 193.8 197.0 216.3 221.4 217.9 229.7 227.4 204.2 196.6 [4,] 198.8 207.5 196.8 201.6 210.5 223.5 223.8 231.2 244.0 234.7 250.2 239.4 [5,] 198.8 283.3 196.8 201.6 210.5 223.5 223.8 231.2 244.0 234.7 321.9 265.7 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 148.1973 131.1795 156.4300 158.8941 167.9588 177.5078 177.0963 177.5533 [2,] 217.6027 229.8205 224.9700 228.7059 226.0412 255.0922 265.7037 258.2467 [,9] [,10] [,11] [,12] [1,] 183.7712 196.2391 161.6628 155.7587 [2,] 275.6288 258.5609 246.7372 237.4413 $out [1] 287.6 295.4 312.3 333.8 347.7 383.2 407.1 413.6 362.7 $group [1] 1 3 4 5 6 7 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(107.1, 145, 182.9, 198.8, 198.8, 110.7, 137.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/52jx31229864387.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,] -7.3 6.4 -3.0 3.2 -0.8 -7.5 -3.5 4.1 -9.3 -40.8 -8.4 -8.4 [2,] -4.3 6.4 1.6 7.8 1.0 0.3 -2.8 4.9 -9.3 -23.2 -8.4 -8.4 [3,] 3.6 10.6 3.9 8.9 13.0 5.1 7.4 6.5 -2.3 -1.0 -7.6 -6.8 [4,] 5.7 12.1 10.9 17.2 13.9 7.1 13.0 11.8 6.8 -0.6 11.7 2.2 [5,] 8.7 16.3 16.9 21.5 19.3 7.1 23.9 12.8 11.6 15.5 15.5 2.2 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.465975 6.572394 -2.671357 2.257984 3.884892 0.2951371 -3.76424 [2,] 10.665975 14.627606 10.471357 15.542016 22.115108 9.9048629 18.56424 [,8] [,9] [,10] [,11] [,12] [1,] 1.624477 -13.67622 -16.96910 -21.80261 -14.2899333 [2,] 11.375523 9.07622 14.96910 6.60261 0.6899333 $out [1] -16.8 35.5 -50.9 -82.5 21.9 -48.4 $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(-7.30000000000001, -4.30000000000001, 3.60000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6qe5j1229864387.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,] 107.10 137.70 174.80 190.70 239.40 191 [2,] 117.90 150.25 195.20 204.55 291.50 191 [3,] 129.65 169.00 200.60 223.65 327.85 191 [4,] 138.80 180.30 219.65 239.35 372.95 191 [5,] 153.40 190.60 229.70 265.70 413.60 191 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 120.1174 155.294 189.4482 207.7775 290.7001 191 [2,] 139.1826 182.706 211.7518 239.5225 364.9999 191 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(107.1, 117.9, 129.65, 138.8, 153.4, 137.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7o5jo1229864387.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,] 183.94 180.50 172.550 [2,] 192.69 192.25 175.775 [3,] 212.08 200.60 194.250 [4,] 228.22 219.65 211.000 [5,] 240.44 229.70 220.100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 195.8745 188.1027 178.1836 [2,] 228.2855 213.0973 210.3164 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(183.94, 192.69, 212.08, 228.22, 240.44, 180.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1089z1229864387.ps tmp/1089z1229864387.png") > system("convert tmp/2qgbe1229864387.ps tmp/2qgbe1229864387.png") > system("convert tmp/3mnx11229864387.ps tmp/3mnx11229864387.png") > system("convert tmp/4dxuw1229864387.ps tmp/4dxuw1229864387.png") > system("convert tmp/52jx31229864387.ps tmp/52jx31229864387.png") > system("convert tmp/6qe5j1229864387.ps tmp/6qe5j1229864387.png") > system("convert tmp/7o5jo1229864387.ps tmp/7o5jo1229864387.png") > > > proc.time() user system elapsed 1.193 0.946 1.470